MAINTAINERS: move USB gadget and phy entries under the main USB entry
[platform/kernel/linux-starfive.git] / init / do_mounts.c
index 7058e14..811e94d 100644 (file)
@@ -296,7 +296,7 @@ EXPORT_SYMBOL_GPL(name_to_dev_t);
 
 static int __init root_dev_setup(char *line)
 {
-       strlcpy(saved_root_name, line, sizeof(saved_root_name));
+       strscpy(saved_root_name, line, sizeof(saved_root_name));
        return 1;
 }
 
@@ -343,7 +343,7 @@ static int __init split_fs_names(char *page, size_t size, char *names)
        int count = 1;
        char *p = page;
 
-       strlcpy(p, root_fs_names, size);
+       strscpy(p, root_fs_names, size);
        while (*p++) {
                if (p[-1] == ',') {
                        p[-1] = '\0';