Skip to content
Snippets Groups Projects
Commit 1139cfe5 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix double close (fnopen doesn't leave the descriptor open)

Fixes CID 33724.
parent 057b737e
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -863,7 +863,6 @@ void sbbs_t::removeline(char *str, char *str2, char num, char skip)
}
close(file);
if((stream=fnopen(&file,str,O_WRONLY|O_TRUNC))==NULL) {
close(file);
errormsg(WHERE,ERR_OPEN,str,O_WRONLY|O_TRUNC);
free(buf);
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment