From 27eae96705374008e71728f990fed3b838c423ce Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 14 Aug 2020 21:14:30 +0200 Subject: Fixed linebreak on directories --- kernel/features/fs.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3