diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 3fe6419319..e12df3af78 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -3899,8 +3899,8 @@ static int vm_play_folder_name_gr(struct ast_channel *chan, char *mbox) { int cmd; char *buf; + buf = alloca(strlen(mbox)+2); - memset(buf, '\0', sizeof(char)*(sizeof(buf))); strcpy(buf, mbox); strcat(buf,"s");