diff options
author | Takashi Iwai <[email protected]> | 2011-02-24 10:05:01 +0100 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2011-02-24 10:05:01 +0100 |
commit | 1aa924e21eec9dbb2c5fae90a71451a700db4414 (patch) | |
tree | 27cc77862c7f7078c7339e2f9b4e52da12ad04c8 /sound/usb/caiaq/midi.c | |
parent | 786c51f9168cfd2d49250c6e5e60035cbb2fd5a1 (diff) | |
parent | ebbd224c22a00dbbee95031a0d6d595460f6f2b3 (diff) |
Merge branch 'fix/hda' into topic/hda
Diffstat (limited to 'sound/usb/caiaq/midi.c')
-rw-r--r-- | sound/usb/caiaq/midi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/caiaq/midi.c b/sound/usb/caiaq/midi.c index 2f218c77fff2..a1a47088fd0c 100644 --- a/sound/usb/caiaq/midi.c +++ b/sound/usb/caiaq/midi.c @@ -136,7 +136,7 @@ int snd_usb_caiaq_midi_init(struct snd_usb_caiaqdev *device) if (ret < 0) return ret; - strcpy(rmidi->name, device->product_name); + strlcpy(rmidi->name, device->product_name, sizeof(rmidi->name)); rmidi->info_flags = SNDRV_RAWMIDI_INFO_DUPLEX; rmidi->private_data = device; |