diff --git a/kernel/kernel/FS/TmpFS/Inode.cpp b/kernel/kernel/FS/TmpFS/Inode.cpp index 69877981..ec7f12a4 100644 --- a/kernel/kernel/FS/TmpFS/Inode.cpp +++ b/kernel/kernel/FS/TmpFS/Inode.cpp @@ -473,6 +473,7 @@ namespace Kernel dirp->d_ino = entry.ino; dirp->d_type = entry.type; strncpy(dirp->d_name, entry.name, entry.name_len); + dirp->d_name[entry.name_len] = '\0'; dirp++; }