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_ino = entry.ino;
|
||||||
dirp->d_type = entry.type;
|
dirp->d_type = entry.type;
|
||||||
strncpy(dirp->d_name, entry.name, entry.name_len);
|
strncpy(dirp->d_name, entry.name, entry.name_len);
|
||||||
|
dirp->d_name[entry.name_len] = '\0';
|
||||||
dirp++;
|
dirp++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue