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

CHAIN.TXT files need CRLF terminated lines

This was a regression (to just LF-terminated lines), an accidental change (from "text" to "binary" file-open) in commit 3bcab8a6.
parent e01b5212
No related branches found
No related tags found
No related merge requests found
...@@ -297,7 +297,7 @@ void sbbs_t::xtrndat(const char *name, const char *dropdir, uchar type, ulong tl ...@@ -297,7 +297,7 @@ void sbbs_t::xtrndat(const char *name, const char *dropdir, uchar type, ulong tl
strlwr(tmp); strlwr(tmp);
SAFEPRINTF2(str,"%s%s",dropdir,tmp); SAFEPRINTF2(str,"%s%s",dropdir,tmp);
(void)removecase(str); (void)removecase(str);
if((fp=fnopen(NULL, str, O_WRONLY|O_CREAT|O_TRUNC)) == NULL) { if((fp=fnopen(NULL, str, O_WRONLY|O_CREAT|O_TRUNC|O_TEXT)) == NULL) {
errormsg(WHERE,ERR_OPEN,str,O_WRONLY|O_CREAT|O_TRUNC|O_TEXT); errormsg(WHERE,ERR_OPEN,str,O_WRONLY|O_CREAT|O_TRUNC|O_TEXT);
return; return;
} }
......
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