From a22eceed840e9f872b5747bd38893a2bc1eee377 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Thu, 8 Apr 2004 03:33:53 +0000
Subject: [PATCH] Typecat TELNET_IAC to char before comparison.

---
 src/sbbs3/con_out.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sbbs3/con_out.cpp b/src/sbbs3/con_out.cpp
index aab1a7ba74..5d4210a9ad 100644
--- a/src/sbbs3/con_out.cpp
+++ b/src/sbbs3/con_out.cpp
@@ -217,7 +217,7 @@ void sbbs_t::outchar(char ch)
 			putcom("\x1b[2J\x1b[H");	/* clear screen, home cursor */
 		}
 		else {
-			if(ch==TELNET_IAC && !(telnet_mode&TELNET_MODE_OFF))
+			if(ch==(char)TELNET_IAC && !(telnet_mode&TELNET_MODE_OFF))
 				outcom(TELNET_IAC);	/* Must escape Telnet IAC char (255) */
 			i=0;
 			while(outcom(ch)&TXBOF && i<1440) { /* 3 minute pause delay */
-- 
GitLab