[asterisk-commits] jpeeler: branch 1.8 r306967 - in /branches/1.8: ./ apps/app_voicemail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Feb 8 13:41:46 CST 2011
Author: jpeeler
Date: Tue Feb 8 13:41:42 2011
New Revision: 306967
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=306967
Log:
Merged revisions 306966 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2
................
r306966 | jpeeler | 2011-02-08 13:41:21 -0600 (Tue, 08 Feb 2011) | 9 lines
Merged revisions 306965 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r306965 | jpeeler | 2011-02-08 13:40:58 -0600 (Tue, 08 Feb 2011) | 1 line
fix this line again
........
................
Modified:
branches/1.8/ (props changed)
branches/1.8/apps/app_voicemail.c
Propchange: branches/1.8/
------------------------------------------------------------------------------
Binary property 'branch-1.6.2-merged' - no diff available.
Modified: branches/1.8/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/apps/app_voicemail.c?view=diff&rev=306967&r1=306966&r2=306967
==============================================================================
--- branches/1.8/apps/app_voicemail.c (original)
+++ branches/1.8/apps/app_voicemail.c Tue Feb 8 13:41:42 2011
@@ -3935,7 +3935,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++;
ast_debug(4, "%s map[%d] = %d, count = %d\n", dir, msgdirint, map[msgdirint], stopcount);
More information about the asterisk-commits
mailing list