diff options
| -rw-r--r-- | init/do_mounts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c index 51f1ff56ff4d..0869bc8e6a2f 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -176,7 +176,7 @@ fail: static int __init root_dev_setup(char *line) { - strncpy(saved_root_name, line, 63); + strlcpy(saved_root_name, line, sizeof(saved_root_name)); return 1; } |
