aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsroot.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/cifsroot.c')
-rw-r--r--fs/cifs/cifsroot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsroot.c b/fs/cifs/cifsroot.c
index 9e91a5a40aae..56ec1b233f52 100644
--- a/fs/cifs/cifsroot.c
+++ b/fs/cifs/cifsroot.c
@@ -59,7 +59,7 @@ static int __init cifs_root_setup(char *line)
pr_err("Root-CIFS: UNC path too long\n");
return 1;
}
- strlcpy(root_dev, line, len);
+ strscpy(root_dev, line, len);
srvaddr = parse_srvaddr(&line[2], s);
if (*s) {
int n = snprintf(root_opts,