ALSA: Convert strlcpy to strscpy when return value is unused
[sfrench/cifs-2.6.git] / sound / pci / hda / hda_eld.c
index 136477ed46ae2673db07fcd200b61871063dab07..9e97443795f837323aef902fa3f16970eb3d9413 100644 (file)
@@ -260,7 +260,7 @@ int snd_hdmi_parse_eld(struct hda_codec *codec, struct parsed_hdmi_eld *e,
                codec_info(codec, "HDMI: out of range MNL %d\n", mnl);
                goto out_fail;
        } else
-               strlcpy(e->monitor_name, buf + ELD_FIXED_BYTES, mnl + 1);
+               strscpy(e->monitor_name, buf + ELD_FIXED_BYTES, mnl + 1);
 
        for (i = 0; i < e->sad_count; i++) {
                if (ELD_FIXED_BYTES + mnl + 3 * (i + 1) > size) {