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

Fix bug in previous commit to this file

I'm surprised this didn't create a warning somewhere: treating char* as a
bool!
parent 02cd0073
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -340,7 +340,7 @@ bool sbbs_t::writemsg(const char *fname, const char *top, char *subj, int mode,
/* Quote entire message to MSGTMP or INPUT.MSG */
if(useron_xedit && cfg.xedit[useron_xedit-1]->misc&QUOTEALL) {
if(!quotes_fname(useron_xedit, path, sizeof(path)))
if(!fexist(quotes_fname(useron_xedit, path, sizeof(path))))
fexistcase(path);
if((stream=fnopen(NULL,path,O_RDONLY))==NULL) {
errormsg(WHERE,ERR_OPEN,path,O_RDONLY);
......@@ -378,7 +378,7 @@ bool sbbs_t::writemsg(const char *fname, const char *top, char *subj, int mode,
;
else if(yesno(text[QuoteMessageQ])) {
if(!quotes_fname(useron_xedit, path, sizeof(path)))
if(!fexist(quotes_fname(useron_xedit, path, sizeof(path))))
fexistcase(path);
if((stream=fnopen(&file,path,O_RDONLY))==NULL) {
errormsg(WHERE,ERR_OPEN,path,O_RDONLY);
......
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