projects
/
asterisk/asterisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix corruptin in app_cut (bug #1084)
[asterisk/asterisk.git]
/
apps
/
app_cut.c
diff --git
a/apps/app_cut.c
b/apps/app_cut.c
index
1d3cf5b
..
18de2d1
100755
(executable)
--- a/
apps/app_cut.c
+++ b/
apps/app_cut.c
@@
-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) {