tools headers UAPI: Sync linux/prctl.h with the kernel sources
[linux-2.6-microblaze.git] / sound / core / rawmidi.c
index 257ad52..aca00af 100644 (file)
@@ -1686,7 +1686,7 @@ int snd_rawmidi_new(struct snd_card *card, char *id, int device,
        INIT_LIST_HEAD(&rmidi->streams[SNDRV_RAWMIDI_STREAM_OUTPUT].substreams);
 
        if (id != NULL)
-               strlcpy(rmidi->id, id, sizeof(rmidi->id));
+               strscpy(rmidi->id, id, sizeof(rmidi->id));
 
        snd_device_initialize(&rmidi->dev, card);
        rmidi->dev.release = release_rawmidi_device;