Commits (2)
...@@ -2780,7 +2780,8 @@ void event_thread(void* arg) ...@@ -2780,7 +2780,8 @@ void event_thread(void* arg)
SAFEPRINTF2(str,"%5u of %-5u",i,j); SAFEPRINTF2(str,"%5u of %-5u",i,j);
//status(str); //status(str);
sbbs->useron.number=i; sbbs->useron.number=i;
fgetuserdat(&sbbs->cfg,&sbbs->useron, userfile); if(fgetuserdat(&sbbs->cfg,&sbbs->useron, userfile) != 0)
continue;
if(sbbs->useron.number if(sbbs->useron.number
&& !(sbbs->useron.misc&(DELETED|INACTIVE)) /* Pre-QWK */ && !(sbbs->useron.misc&(DELETED|INACTIVE)) /* Pre-QWK */
......
...@@ -1166,6 +1166,7 @@ void packmsgs(ulong packable) ...@@ -1166,6 +1166,7 @@ void packmsgs(ulong packable)
} }
total=0; total=0;
for(l=0;l<smb.status.total_msgs;l++) { for(l=0;l<smb.status.total_msgs;l++) {
ZERO_VAR(msg);
fseek(smb.sid_fp, l * idxreclen,SEEK_SET); fseek(smb.sid_fp, l * idxreclen,SEEK_SET);
printf("%lu of %"PRIu32"\r",l+1,smb.status.total_msgs); printf("%lu of %"PRIu32"\r",l+1,smb.status.total_msgs);
if(!fread(&msg.idx, sizeof(msg.idx), 1, smb.sid_fp)) if(!fread(&msg.idx, sizeof(msg.idx), 1, smb.sid_fp))
......