diff --git a/src/sbbs3/telgate.cpp b/src/sbbs3/telgate.cpp
index 6facfc018fc298483f459c92391ec6e5c20234d4..d21454124437115abe1041aab3cbe454f41096ab 100644
--- a/src/sbbs3/telgate.cpp
+++ b/src/sbbs3/telgate.cpp
@@ -191,7 +191,7 @@ void sbbs_t::telnet_gate(char* destaddr, ulong mode, char* client_user_name, cha
 					rd=getstr((char*)buf,sizeof(buf)-1,l);
 					if(!rd)
 						continue;
-					strcat((char*)buf,crlf);
+					SAFECAT((char*)buf,crlf);
 					rd+=2;
 					gotline=true;
 				}