Commit e2f909bef950fa5aae9939fd917e7bd0c3b63042

Authored by bellard
1 parent 7f1a8398

swapped memset args (Charles Coffing)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2081 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
audio/audio.c
@@ -605,11 +605,11 @@ void audio_pcm_info_clear_buf (struct audio_pcm_info *info, void *buf, int len) @@ -605,11 +605,11 @@ void audio_pcm_info_clear_buf (struct audio_pcm_info *info, void *buf, int len)
605 } 605 }
606 606
607 if (info->sign) { 607 if (info->sign) {
608 - memset (buf, len << info->shift, 0x00); 608 + memset (buf, 0x00, len << info->shift);
609 } 609 }
610 else { 610 else {
611 if (info->bits == 8) { 611 if (info->bits == 8) {
612 - memset (buf, len << info->shift, 0x80); 612 + memset (buf, 0x80, len << info->shift);
613 } 613 }
614 else { 614 else {
615 int i; 615 int i;