ALSA: Convert strlcpy to strscpy when return value is unused
[sfrench/cifs-2.6.git] / sound / firewire / motu / motu-hwdep.c
index 0764a477052a2407378d95be0647af7e453d87dc..b5ced5d27758b63860835ba7d0aced1deed0fd93 100644 (file)
@@ -86,7 +86,7 @@ static int hwdep_get_info(struct snd_motu *motu, void __user *arg)
        info.card = dev->card->index;
        *(__be32 *)&info.guid[0] = cpu_to_be32(dev->config_rom[3]);
        *(__be32 *)&info.guid[4] = cpu_to_be32(dev->config_rom[4]);
-       strlcpy(info.device_name, dev_name(&dev->device),
+       strscpy(info.device_name, dev_name(&dev->device),
                sizeof(info.device_name));
 
        if (copy_to_user(arg, &info, sizeof(info)))