Fix corruptin in app_cut (bug #1084)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2229 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-02-24 18:57:46 +00:00
parent f62061aa78
commit 39a358ef56

View File

@@ -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) {