vboxsf: Replace all non-returning strlcpy with strscpy
[linux-block.git] / fs / vboxsf / super.c
index d2f6df69f6110c02ec114a2938d855aca8df1487..1fb8f4df60cbb3bd213910b433d3f620a1358d4b 100644 (file)
@@ -176,7 +176,7 @@ static int vboxsf_fill_super(struct super_block *sb, struct fs_context *fc)
        }
        folder_name->size = size;
        folder_name->length = size - 1;
-       strlcpy(folder_name->string.utf8, fc->source, size);
+       strscpy(folder_name->string.utf8, fc->source, size);
        err = vboxsf_map_folder(folder_name, &sbi->root);
        kfree(folder_name);
        if (err) {