From: Seven Du Date: Thu, 28 Mar 2013 09:36:01 +0000 (+0800) Subject: fix void * arithmatic warning X-Git-Tag: v1.3.17-final~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe1a7583386bc39437de3ae14629564e797015cd;p=thirdparty%2Ffreeswitch.git fix void * arithmatic warning --- diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index f1ff4ae399..40852b9768 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -845,7 +845,7 @@ static switch_bool_t write_displace_callback(switch_media_bug_t *bug, void *user } else { st = switch_core_file_read(&dh->fh, rframe->data, &len); if (len < rframe->samples) { - memset(rframe->data + len * 2, 0, rframe->datalen - len * 2); + memset((char *)rframe->data + len * 2, 0, rframe->datalen - len * 2); } }