diff options
Diffstat (limited to 'kernel/features/fs.c')
-rw-r--r-- | kernel/features/fs.c | 1 |
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; |