Kernel: Null terminate tmpfs directory entries
This commit is contained in:
parent
a5cf92b2ff
commit
d189f00f38
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue