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

Bug-fix importing past a user's tear-line (e.g. in their sig) - can't use

SAFECOPY here since 'tail' is malloc'd pointer - oops.
parent dd4b0cb1
No related branches found
No related tags found
No related merge requests found
......@@ -303,7 +303,7 @@ bool sbbs_t::qwk_import_msg(FILE *qwk_fp, char *hdrblk, ulong blocks
&& body[bodylen-3]=='-' && body[bodylen-2]=='-'
&& body[bodylen-1]=='-') {
bodylen-=3;
SAFECOPY(tail,"--- ");
strcpy(tail,"--- "); /* DO NOT USE SAFECOPY */
taillen=4;
col++;
continue;
......@@ -312,7 +312,7 @@ bool sbbs_t::qwk_import_msg(FILE *qwk_fp, char *hdrblk, ulong blocks
if(!taillen && col==3 && bodylen>=3 && body[bodylen-3]=='-'
&& body[bodylen-2]=='-' && body[bodylen-1]=='-') {
bodylen-=3;
SAFECOPY(tail,"---");
strcpy(tail,"---"); /* DO NOT USE SAFECOPY */
taillen=3;
}
col=0;
......
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