From 90fd8c75a55f3b208947517203f467cde965536c Mon Sep 17 00:00:00 2001 From: kpfleming Date: Tue, 26 Feb 2008 23:43:29 +0000 Subject: properly initialize the buffer used for holding generated tone samples... this should fix issue #11855 and solve problems with DTMF generation git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3881 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- tonezone.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tonezone.c b/tonezone.c index 053cba4..7c7d70e 100644 --- a/tonezone.c +++ b/tonezone.c @@ -319,6 +319,8 @@ int tone_zone_register_zone(int fd, struct tone_zone *z) int iopenedit = 1; struct zt_tone_def_header *h; + memset(buf, 0, sizeof(buf)); + h = ptr; ptr += sizeof(*h); space -= sizeof(*h); -- cgit v1.2.3