Skip to content
Snippets Groups Projects
Commit 9253f2cd authored by rswindell's avatar rswindell
Browse files

More use of fnopen().

parent 2dab029b
No related branches found
No related tags found
No related merge requests found
...@@ -226,8 +226,7 @@ bool sbbs_t::email(int usernumber, const char *top, const char *subj, long mode) ...@@ -226,8 +226,7 @@ bool sbbs_t::email(int usernumber, const char *top, const char *subj, long mode)
offset=smb_allocdat(&smb,length,1); offset=smb_allocdat(&smb,length,1);
smb_close_da(&smb); smb_close_da(&smb);
if((file=open(msgpath,O_RDONLY|O_BINARY))==-1 if((instream=fnopen(&file,msgpath,O_RDONLY|O_BINARY))==NULL) {
|| (instream=fdopen(file,"rb"))==NULL) {
smb_freemsgdat(&smb,offset,length,1); smb_freemsgdat(&smb,offset,length,1);
smb_unlocksmbhdr(&smb); smb_unlocksmbhdr(&smb);
smb_close(&smb); smb_close(&smb);
......
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