Skip to content
Snippets Groups Projects
Commit 21e6d7af authored by rswindell's avatar rswindell
Browse files

Minor bug: only iterate 'total_msgs' number of indexes.

Don't set binary _fmode for Win32 (we want carriage returns in the log file).
parent 7948cd9e
No related branches found
No related tags found
No related merge requests found
......@@ -2257,7 +2257,7 @@ BOOL DLLCALL get_msg_by_ftn_id(smb_t* smb, char* id, smbmsg_t* msg)
{
ulong n;
for(n=0;n<smb->status.last_msg;n++) {
for(n=0;n<smb->status.total_msgs;n++) {
memset(msg,0,sizeof(smbmsg_t));
msg->offset=n;
if(smb_getmsgidx(smb, msg)!=0)
......@@ -4125,14 +4125,8 @@ int main(int argc, char **argv)
#endif
,revision
);
#if 0
putenv("TZ=UTC0");
#endif
putenv("TMP=");
#if !defined(__unix__)
_fmode=O_BINARY;
#endif
setvbuf(stdout,NULL,_IONBF,0);
sub_code[0]=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment