aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/fs.c
diff options
context:
space:
mode:
authorMarvin Borner2020-08-14 21:14:30 +0200
committerMarvin Borner2020-08-14 21:14:30 +0200
commit27eae96705374008e71728f990fed3b838c423ce (patch)
tree49ab5d7aee392668b85315ffb854151f92d51cb1 /kernel/features/fs.c
parentdb44570c8a68d3285d8106b2e17ff78abab89d8e (diff)
Fixed linebreak on directories
Diffstat (limited to 'kernel/features/fs.c')
-rw-r--r--kernel/features/fs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/features/fs.c b/kernel/features/fs.c
index ab2a6eb..3c1b849 100644
--- a/kernel/features/fs.c
+++ b/kernel/features/fs.c
@@ -173,6 +173,7 @@ void ls_root()
do {
calc = (sizeof(struct dirent) + d->name_len + 4) & ~0x3;
sum += d->total_len;
+ d->name[d->name_len] = '\0';
printf("/%s\n", d->name);
if (d->total_len != calc && sum == 1024)
d->total_len = calc;