From 0e580b53784416a581e9a61f2dc57770d1d58ecc Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Thu, 30 Apr 2020 20:28:09 +0000
Subject: [PATCH] Sanity-check: If string passed to show_atcode() does not
 start with an '@', just immediately return 0.

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

diff --git a/src/sbbs3/atcodes.cpp b/src/sbbs3/atcodes.cpp
index e6c658966d..d4181b69af 100644
--- a/src/sbbs3/atcodes.cpp
+++ b/src/sbbs3/atcodes.cpp
@@ -87,6 +87,8 @@ int sbbs_t::show_atcode(const char *instr, JSObject* obj)
 	long	pmode = 0;
 	const char *cp;
 
+	if(*instr != '@')
+		return 0;
 	SAFECOPY(str,instr);
 	tp=strchr(str+1,'@');
 	if(!tp)                 /* no terminating @ */
-- 
GitLab