[asterisk-commits] trunk - r7863 /trunk/apps/app_voicemail.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sat Jan 7 17:43:24 CST 2006
Author: markster
Date: Sat Jan 7 17:43:23 2006
New Revision: 7863
URL: http://svn.digium.com/view/asterisk?rev=7863&view=rev
Log:
Fix segfault in greek syntax (bug #6142)
Modified:
trunk/apps/app_voicemail.c
Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?rev=7863&r1=7862&r2=7863&view=diff
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Sat Jan 7 17:43:23 2006
@@ -3898,8 +3898,8 @@
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");
More information about the asterisk-commits
mailing list