[zaptel-commits] kpfleming: branch 1.4 r3881 - /branches/1.4/tonezone.c

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Tue Feb 26 17:43:30 CST 2008


Author: kpfleming
Date: Tue Feb 26 17:43:29 2008
New Revision: 3881

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3881
Log:
properly initialize the buffer used for holding generated tone samples... this should fix issue #11855 and solve problems with DTMF generation

Modified:
    branches/1.4/tonezone.c

Modified: branches/1.4/tonezone.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/tonezone.c?view=diff&rev=3881&r1=3880&r2=3881
==============================================================================
--- branches/1.4/tonezone.c (original)
+++ branches/1.4/tonezone.c Tue Feb 26 17:43:29 2008
@@ -319,6 +319,8 @@
 	int iopenedit = 1;
 	struct zt_tone_def_header *h;
 
+	memset(buf, 0, sizeof(buf));
+
 	h = ptr;
 	ptr += sizeof(*h);
 	space -= sizeof(*h);




More information about the zaptel-commits mailing list