diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-02-26 23:43:29 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-02-26 23:43:29 +0000 |
commit | 90fd8c75a55f3b208947517203f467cde965536c (patch) | |
tree | 0adc10a0f7ff060fa0a630dddb973006a8a7f6f3 | |
parent | 726fc701fbccf8f384379e29bfae2adcc7633fb8 (diff) |
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
-rw-r--r-- | tonezone.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |