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
This commit is contained in:
Russell Bryant
2006-01-09 05:11:44 +00:00
parent 18429f2a69
commit a7a2115b9c

View File

@@ -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");