From: Anthony Minessale Date: Fri, 20 Sep 2013 16:41:19 +0000 (+0500) Subject: FS-5807 --resolve X-Git-Tag: v1.5.8~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75da9d1e7343e1114da0c49dd6b885f5150a5599;p=thirdparty%2Ffreeswitch.git FS-5807 --resolve --- diff --git a/src/switch_ivr_play_say.c b/src/switch_ivr_play_say.c index 7222c43533..ca0d01fcc7 100644 --- a/src/switch_ivr_play_say.c +++ b/src/switch_ivr_play_say.c @@ -1255,7 +1255,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess if (!abuf) { - switch_zmalloc(abuf, FILE_STARTSAMPLES * sizeof(*abuf)); + switch_zmalloc(abuf, FILE_STARTSAMPLES * sizeof(*abuf) * fh->channels); write_frame.data = abuf; write_frame.buflen = FILE_STARTSAMPLES; }