aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/proc.c
diff options
context:
space:
mode:
authorMarvin Borner2021-04-30 15:03:27 +0200
committerMarvin Borner2021-04-30 15:03:27 +0200
commit350748137b62e2aa15c62c53ebf4d30816e441f4 (patch)
treea4c1b1c443c1f0de4bd74336a9ceed9376ce694a /kernel/features/proc.c
parent3a3d50d7eb0f4fdbb9beaf16bacfa98689cc448c (diff)
Added MBR driver and better disk creation
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);