ALSA: Convert strlcpy to strscpy when return value is unused
[sfrench/cifs-2.6.git] / sound / core / hwdep.c
index 0c029892880a802cea9a65d66d292f7076f51b06..264b8ea64bc24893c65df66f46b5a4ee24120040 100644 (file)
@@ -177,8 +177,8 @@ static int snd_hwdep_info(struct snd_hwdep *hw,
        
        memset(&info, 0, sizeof(info));
        info.card = hw->card->number;
-       strlcpy(info.id, hw->id, sizeof(info.id));      
-       strlcpy(info.name, hw->name, sizeof(info.name));
+       strscpy(info.id, hw->id, sizeof(info.id));
+       strscpy(info.name, hw->name, sizeof(info.name));
        info.iface = hw->iface;
        if (copy_to_user(_info, &info, sizeof(info)))
                return -EFAULT;
@@ -379,7 +379,7 @@ int snd_hwdep_new(struct snd_card *card, char *id, int device,
        hwdep->card = card;
        hwdep->device = device;
        if (id)
-               strlcpy(hwdep->id, id, sizeof(hwdep->id));
+               strscpy(hwdep->id, id, sizeof(hwdep->id));
 
        snd_device_initialize(&hwdep->dev, card);
        hwdep->dev.release = release_hwdep_device;