Merge tag 'csky-for-linus-4.20-fixup-dtb' of https://github.com/c-sky/csky-linux
[linux-block.git] / drivers / media / pci / cx18 / cx18-alsa-pcm.c
index 4f31042a442ace9562bd348661d26fb88e8f3d58..3eafc27956c2b81f7c8ec3d015841337d312535a 100644 (file)
@@ -345,7 +345,7 @@ int snd_cx18_pcm_create(struct snd_cx18_card *cxsc)
                        &snd_cx18_pcm_capture_ops);
        sp->info_flags = 0;
        sp->private_data = cxsc;
-       strlcpy(sp->name, cx->card_name, sizeof(sp->name));
+       strscpy(sp->name, cx->card_name, sizeof(sp->name));
 
        return 0;