[asterisk-commits] trunk r28833 - /trunk/apps/app_voicemail.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri May 19 15:55:02 MST 2006


Author: kpfleming
Date: Fri May 19 17:55:02 2006
New Revision: 28833

URL: http://svn.digium.com/view/asterisk?rev=28833&view=rev
Log:
let's use the proper variable here, instead of segfaulting (don't know how this worked for anyone at all)

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=28833&r1=28832&r2=28833&view=diff
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Fri May 19 17:55:02 2006
@@ -2236,7 +2236,7 @@
 	char tmp[256], *tmp2 = tmp, *mbox, *context;
 	ast_copy_string(tmp, mailbox, sizeof(tmp));
 	while ((mbox = strsep(&tmp2, ","))) {
-		if ((context = strchr(tmp2, '@')))
+		if ((context = strchr(mbox, '@')))
 			*context++ = '\0';
 		else
 			context = "default";



More information about the asterisk-commits mailing list