Skip to content
Snippets Groups Projects
Commit d443a825 authored by rswindell's avatar rswindell
Browse files

Write the sbbsecho.cfg file in text mode.

parent 68728d18
No related branches found
No related tags found
No related merge requests found
......@@ -1145,7 +1145,7 @@ int main(int argc, char **argv)
i=uifc.list(WIN_MID,0,0,0,&i,0,"Save Config File",opt);
if(i==-1) break;
if(i) {uifc.bail(); exit(0);}
if((stream=fnopen(NULL,cfg.cfgfile,O_CREAT|O_TRUNC|O_WRONLY))==NULL) {
if((stream=fnopen(NULL,cfg.cfgfile,O_CREAT|O_TRUNC|O_WRONLY|O_TEXT))==NULL) {
uifc.bail();
printf("Error %d opening %s\n",errno,cfg.cfgfile);
exit(1);
......
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