Revise close on exec

This commit is contained in:
Mr-Dave
2022-04-16 13:51:41 -06:00
parent 58f60f8688
commit 7a809dd8b8
9 changed files with 44 additions and 63 deletions

View File

@@ -1191,7 +1191,7 @@ static std::string webu_mhd_loadfile(std::string fname)
filestr = "";
if (fname != "") {
infile = fopen(fname.c_str() , "rb");
infile = myfopen(fname.c_str() , "rbe");
if (infile != NULL) {
fseek(infile, 0, SEEK_END);
file_size = ftell(infile);
@@ -1208,7 +1208,7 @@ static std::string webu_mhd_loadfile(std::string fname)
}
free(file_char);
}
fclose(infile);
myfclose(infile);
}
}
return filestr;