From 586679ed19633e8161ad19d9ec407f4c6d22ecd5 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 26 Feb 2008 08:18:09 +0000
Subject: [PATCH] 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.

---
 src/sbbs3/qwktomsg.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/qwktomsg.cpp b/src/sbbs3/qwktomsg.cpp
index 474ebf2a57..de46c58e53 100644
--- a/src/sbbs3/qwktomsg.cpp
+++ b/src/sbbs3/qwktomsg.cpp
@@ -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;
-- 
GitLab