Fix segfault in greek syntax (bug #6142)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7863 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
8f00194254
commit
f5678d89d4
|
@ -3898,8 +3898,8 @@ done:
|
||||||
static int vm_play_folder_name_gr(struct ast_channel *chan, char *mbox)
|
static int vm_play_folder_name_gr(struct ast_channel *chan, char *mbox)
|
||||||
{
|
{
|
||||||
int cmd;
|
int cmd;
|
||||||
char buf[sizeof(mbox)+1];
|
char *buf;
|
||||||
|
buf = alloca(strlen(mbox)+2);
|
||||||
memset(buf, '\0', sizeof(char)*(sizeof(buf)));
|
memset(buf, '\0', sizeof(char)*(sizeof(buf)));
|
||||||
strcpy(buf, mbox);
|
strcpy(buf, mbox);
|
||||||
strcat(buf,"s");
|
strcat(buf,"s");
|
||||||
|
|
Loading…
Reference in New Issue