From a7a2115b9ca751f3975ff4f2b680670a2e6412b2 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Mon, 9 Jan 2006 05:11:44 +0000 Subject: [PATCH] fix seg fault when using greek syntax in VoicemMailMain (issue #6142) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7871 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_voicemail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index c098bcc3d0..e019ebc9f7 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");