[asterisk-commits] branch 1.2 - r7871 /branches/1.2/apps/app_voicemail.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Jan 8 23:11:45 CST 2006


Author: russell
Date: Sun Jan  8 23:11:44 2006
New Revision: 7871

URL: http://svn.digium.com/view/asterisk?rev=7871&view=rev
Log:
fix seg fault when using greek syntax in VoicemMailMain (issue #6142)

Modified:
    branches/1.2/apps/app_voicemail.c

Modified: branches/1.2/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_voicemail.c?rev=7871&r1=7870&r2=7871&view=diff
==============================================================================
--- branches/1.2/apps/app_voicemail.c (original)
+++ branches/1.2/apps/app_voicemail.c Sun Jan  8 23:11:44 2006
@@ -3919,8 +3919,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