Merged revisions 8729 via svnmerge from
[asterisk/asterisk.git] / channels / chan_zap.c
index 4e5110b..d4a5c59 100644 (file)
@@ -5362,7 +5362,7 @@ static void *ss_thread(void *data)
                        else 
                                ast_dsp_digitmode(p->dsp,DSP_DIGITMODE_DTMF | p->dtmfrelax);
                }
-               dtmfbuf[0] = 0;
+               memset(dtmfbuf, 0, sizeof(dtmfbuf));
                /* Wait for the first digit only if immediate=no */
                if (!p->immediate)
                        /* Wait for the first digit (up to 5 seconds). */