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

More use of fnopen().

parent 2dab029b
Branches
Tags
No related merge requests found
......@@ -226,8 +226,7 @@ bool sbbs_t::email(int usernumber, const char *top, const char *subj, long mode)
offset=smb_allocdat(&smb,length,1);
smb_close_da(&smb);
if((file=open(msgpath,O_RDONLY|O_BINARY))==-1
|| (instream=fdopen(file,"rb"))==NULL) {
if((instream=fnopen(&file,msgpath,O_RDONLY|O_BINARY))==NULL) {
smb_freemsgdat(&smb,offset,length,1);
smb_unlocksmbhdr(&smb);
smb_close(&smb);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment