ALSA: Use strlcpy() instead of strncpy()
[deliverable/linux.git] / sound / pci / rme9652 / hdspm.c
index 2907e68150cb1ca1adb0c40a5a573ef7af18394b..e98dc008de0b91e4b7e73f776081893fafa04084 100644 (file)
@@ -6400,7 +6400,7 @@ static int snd_hdspm_hwdep_ioctl(struct snd_hwdep *hw, struct file *file,
                memset(&hdspm_version, 0, sizeof(hdspm_version));
 
                hdspm_version.card_type = hdspm->io_type;
-               strncpy(hdspm_version.cardname, hdspm->card_name,
+               strlcpy(hdspm_version.cardname, hdspm->card_name,
                                sizeof(hdspm_version.cardname));
                hdspm_version.serial = hdspm->serial;
                hdspm_version.firmware_rev = hdspm->firmware_rev;
This page took 0.030821 seconds and 5 git commands to generate.