aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/features/proc.c')
-rw-r--r--kernel/features/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/features/proc.c b/kernel/features/proc.c
index ffa711b..36ee6b9 100644
--- a/kernel/features/proc.c
+++ b/kernel/features/proc.c
@@ -332,7 +332,7 @@ NORETURN void proc_init(void)
vfs->perm = procfs_perm;
vfs->data = NULL;
struct vfs_dev *dev = zalloc(sizeof(*dev));
- dev->name = "proc";
+ strlcpy(dev->name, "proc", sizeof(dev->name));
dev->type = DEV_CHAR;
dev->vfs = vfs;
vfs_add_dev(dev);