Changeset 135 for GPL/trunk/alsa-kernel/synth
- Timestamp:
- Jun 13, 2007, 9:06:25 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/synth/emux/soundfont.c
r77 r135 142 142 143 143 count -= sizeof(patch); 144 (char*)data +=sizeof(patch);144 data = (char*)data + sizeof(patch); 145 145 146 146 if (patch.key != SNDRV_OSS_SOUNDFONT_PATCH) { … … 539 539 return -EFAULT; 540 540 541 (char*)data +=sizeof(hdr);541 data = (char*)data + sizeof(hdr); 542 542 count -= sizeof(hdr); 543 543 544 if ( hdr.nvoices <= 0 || hdr.nvoices >= 100) {544 if ((signed char)hdr.nvoices <= 0 || hdr.nvoices >= 100) { 545 545 printk("Soundfont error: Illegal voice number %d\n", hdr.nvoices); 546 546 return -EINVAL; … … 578 578 } 579 579 580 (char*)data +=sizeof(tmpzone.v);580 data = (char*)data + sizeof(tmpzone.v); 581 581 count -= sizeof(tmpzone.v); 582 582
Note:
See TracChangeset
for help on using the changeset viewer.