ALSA: hda: Use scnprintf() for string truncation
[linux-2.6-microblaze.git] / sound / hda / hdac_device.c
index 9a526ae..e3119f5 100644 (file)
@@ -204,7 +204,7 @@ EXPORT_SYMBOL_GPL(snd_hdac_device_set_chip_name);
  */
 int snd_hdac_codec_modalias(struct hdac_device *codec, char *buf, size_t size)
 {
-       return snprintf(buf, size, "hdaudio:v%08Xr%08Xa%02X\n",
+       return scnprintf(buf, size, "hdaudio:v%08Xr%08Xa%02X\n",
                        codec->vendor_id, codec->revision_id, codec->type);
 }
 EXPORT_SYMBOL_GPL(snd_hdac_codec_modalias);