Commit 2abfb785 authored by Ben Collins's avatar Ben Collins Committed by Linus Torvalds

[PATCH] do_mounts.c strlcpy

Use strlcpy in root_dev_setup()
parent 03b9f57b
......@@ -176,7 +176,7 @@ dev_t name_to_dev_t(char *name)
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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment