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

When appending .sig files to message body text, expand Unix-style (LF) EOL

sequences to SMB-style (CRLF). This resolves the issue of .sig files created
or edited with a Unix-style text editor and the resulting signature losing line
endings when being exported to FTN (for example).
parent 361be405
Branches
Tags
No related merge requests found
...@@ -549,8 +549,7 @@ bool sbbs_t::writemsg(const char *fname, const char *top, char *title, long mode ...@@ -549,8 +549,7 @@ bool sbbs_t::writemsg(const char *fname, const char *top, char *title, long mode
while(!feof(sig)) { while(!feof(sig)) {
if(!fgets(str,sizeof(str),sig)) if(!fgets(str,sizeof(str),sig))
break; break;
fputs(str,stream); l+=fprintf(stream,"%s\r\n",str);
l+=strlen(str); /* byte counter */
lines++; /* line counter */ lines++; /* line counter */
} }
fclose(sig); fclose(sig);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment