aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-09 05:11:44 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-09 05:11:44 +0000
commitbd8193acad149681dd0b178b18ae3ea67e88a797 (patch)
tree87b18c38d5e4bcbf0c616c72f12c99e23f0b8f2c /apps/app_voicemail.c
parentd5db98a4af5c059aaa2b9dace5d69f491e5955de (diff)
fix seg fault when using greek syntax in VoicemMailMain (issue #6142)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7871 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-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 c098bcc3d..e019ebc9f 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -3919,8 +3919,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");