[asterisk-commits] jpeeler: branch 1.4 r306965 - /branches/1.4/apps/app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 8 13:41:02 CST 2011


Author: jpeeler
Date: Tue Feb  8 13:40:58 2011
New Revision: 306965

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=306965
Log:
fix this line again

Modified:
    branches/1.4/apps/app_voicemail.c

Modified: branches/1.4/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=306965&r1=306964&r2=306965
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Tue Feb  8 13:40:58 2011
@@ -2937,7 +2937,7 @@
 	}
 
 	while ((msgdirent = readdir(msgdir))) {
-		if (!strcmp(extension, "txt") && msgdirint < MAXMSGLIMIT && sscanf(msgdirent->d_name, "msg%10d.%3s", &msgdirint, extension) == 2) {
+		if (sscanf(msgdirent->d_name, "msg%30d.%3s", &msgdirint, extension) == 2 && !strcmp(extension, "txt") && msgdirint < MAXMSGLIMIT) {
 			map[msgdirint] = 1;
 			stopcount++;
 			if (option_debug > 3) {




More information about the asterisk-commits mailing list