Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233469
b: refs/heads/master
c: eaae55d
h: refs/heads/master
i:
  233467: 8ad2214
v: v3
  • Loading branch information
Takashi Iwai committed Feb 14, 2011
1 parent fb98840 commit 3c02591
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5e5677f239ba69fc718ec9a87ac4ba035dafe2c0
refs/heads/master: eaae55dac6b64c0616046436b294e69fc5311581
2 changes: 1 addition & 1 deletion trunk/sound/usb/caiaq/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ int snd_usb_caiaq_audio_init(struct snd_usb_caiaqdev *dev)
}

dev->pcm->private_data = dev;
strcpy(dev->pcm->name, dev->product_name);
strlcpy(dev->pcm->name, dev->product_name, sizeof(dev->pcm->name));

memset(dev->sub_playback, 0, sizeof(dev->sub_playback));
memset(dev->sub_capture, 0, sizeof(dev->sub_capture));
Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/usb/caiaq/midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3c02591

Please sign in to comment.