diff options
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index e019ebc9f..9fc5bb1cc 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -3920,8 +3920,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"); |