mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-05 03:40:18 +00:00
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 ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@306967 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3935,7 +3935,7 @@ static int last_message_index(struct ast_vm_user *vmu, char *dir)
|
|||||||
}
|
}
|
||||||
|
|
||||||
while ((msgdirent = readdir(msgdir))) {
|
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;
|
map[msgdirint] = 1;
|
||||||
stopcount++;
|
stopcount++;
|
||||||
ast_debug(4, "%s map[%d] = %d, count = %d\n", dir, msgdirint, map[msgdirint], stopcount);
|
ast_debug(4, "%s map[%d] = %d, count = %d\n", dir, msgdirint, map[msgdirint], stopcount);
|
||||||
|
|||||||
Reference in New Issue
Block a user