Skip to content
Snippets Groups Projects
Commit a39cc1fa authored by deuce's avatar deuce
Browse files

Open logs in binary mode to work around Microsoft C library bug which mangles

LFs on write.
parent 5f56de5f
No related branches found
No related tags found
No related merge requests found
......@@ -2815,7 +2815,7 @@ int CIOLIBCALL cterm_openlog(struct cterminal *cterm, char *logfile, int logtype
if(!cterm->started)
cterm_start(cterm);
cterm->logfile=fopen(logfile, "a");
cterm->logfile=fopen(logfile, "ab");
if(cterm->logfile==NULL)
return(0);
cterm->log=logtype;
......
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