From: Kevin P. Fleming Date: Mon, 9 Jan 2006 18:03:18 +0000 (+0000) Subject: fix breakage introduced in revision 7863 X-Git-Tag: 1.4.0-beta1~3027 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10862cd15103c3ea2733fb27d779b226ab2ea06b;p=thirdparty%2Fasterisk.git fix breakage introduced in revision 7863 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7897 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- 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");