Kernel: Null terminate tmpfs directory entries

This commit is contained in:
Bananymous 2025-01-12 16:03:09 +02:00
parent a5cf92b2ff
commit d189f00f38
1 changed files with 1 additions and 0 deletions

View File

@ -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++;
}