aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-07 23:43:23 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-07 23:43:23 +0000
commitdd039e5ddb01ceaa220538e47eda6a887ac7664f (patch)
tree5c6bea4368442ad2b668f2434900e58358fcc0aa /apps
parent801fead05d1241e45d932ebcbb3f1099740e6e2c (diff)
Fix segfault in greek syntax (bug #6142)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7863 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_voicemail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 3d98cc0e0..3fe641931 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -3898,8 +3898,8 @@ done:
static int vm_play_folder_name_gr(struct ast_channel *chan, char *mbox)
{
int cmd;
- char buf[sizeof(mbox)+1];
-
+ char *buf;
+ buf = alloca(strlen(mbox)+2);
memset(buf, '\0', sizeof(char)*(sizeof(buf)));
strcpy(buf, mbox);
strcat(buf,"s");