ALSA: Convert strlcpy to strscpy when return value is unused
[sfrench/cifs-2.6.git] / sound / drivers / opl3 / opl3_synth.c
index 08c10ac9d6c87a75374ac97e787ded3be15c4617..97d30a833ac81eea6ad3b1b236302c2a754a8dd0 100644 (file)
@@ -290,7 +290,7 @@ int snd_opl3_load_patch(struct snd_opl3 *opl3,
        }
 
        if (name)
-               strlcpy(patch->name, name, sizeof(patch->name));
+               strscpy(patch->name, name, sizeof(patch->name));
 
        return 0;
 }