Fix corruptin in app_cut (bug #1084)
authorMark Spencer <markster@digium.com>
Tue, 24 Feb 2004 18:57:46 +0000 (18:57 +0000)
committerMark Spencer <markster@digium.com>
Tue, 24 Feb 2004 18:57:46 +0000 (18:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2229 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_cut.c

index 1d3cf5b..18de2d1 100755 (executable)
@@ -85,6 +85,8 @@ static int cut_exec(struct ast_channel *chan, void *data)
                char *tmp2 = alloca(MAXRESULT);
                char retstring[MAXRESULT];
 
+               if (tmp2)
+                       memset(tmp2, 0, MAXRESULT);
                memset(retstring, 0, MAXRESULT);
 
                if (tmp && tmp2) {