[asterisk-commits] trunk r14837 - in /trunk: ./ apps/app_voicemail.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Mar 24 22:02:20 MST 2006
Author: tilghman
Date: Fri Mar 24 23:02:19 2006
New Revision: 14837
URL: http://svn.digium.com/view/asterisk?rev=14837&view=rev
Log:
Merged revisions 14830 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r14830 | tilghman | 2006-03-24 23:01:16 -0600 (Fri, 24 Mar 2006) | 2 lines
Fix incorrect size of zeroing (left over from when maxmsg was hardcoded at 100)
........
Modified:
trunk/ (props changed)
trunk/apps/app_voicemail.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.
Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?rev=14837&r1=14836&r2=14837&view=diff
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Fri Mar 24 23:02:19 2006
@@ -3882,7 +3882,7 @@
return ERROR_LOCK_PATH;
vms->curmsg = -1;
- for (x=0;x < vmu->maxmsg;x++) {
+ for (x = 0; x < vmu->maxmsg; x++) {
if (!vms->deleted[x] && (strcasecmp(vms->curbox, "INBOX") || !vms->heard[x])) {
/* Save this message. It's not in INBOX or hasn't been heard */
make_file(vms->fn, sizeof(vms->fn), vms->curdir, x);
@@ -3916,9 +3916,9 @@
done:
if (vms->deleted)
- memset(vms->deleted, 0, sizeof(vms->deleted));
+ memset(vms->deleted, 0, vmu->maxmsg * sizeof(int));
if (vms->heard)
- memset(vms->heard, 0, sizeof(vms->heard));
+ memset(vms->heard, 0, vmu->maxmsg * sizeof(int));
return 0;
}
More information about the asterisk-commits
mailing list