From 0e3b4c73dc40cc3c16a1aed541a058916de99fcc Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sun, 10 Feb 2013 03:51:24 +0000
Subject: [PATCH] *_TO_STRING() considered harmful.

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

diff --git a/src/sbbs3/jsdebug.c b/src/sbbs3/jsdebug.c
index cb8980a06a..0aa15d8831 100644
--- a/src/sbbs3/jsdebug.c
+++ b/src/sbbs3/jsdebug.c
@@ -215,7 +215,7 @@ static enum debug_action script_debug_prompt(struct debugger *dbg, JSScript *scr
 
 					name=JS_GetFunctionId(fn);
 					if(name) {
-						JSSTRING_TO_STRING(dbg->cx, name, cp, NULL);
+						JSSTRING_TO_ASTRING(dbg->cx, name, cp, 128, NULL);
 						msg=xp_asprintf(" %s()", cp);
 						if(msg) {
 							dbg->puts(msg);
@@ -367,7 +367,7 @@ static enum debug_action script_debug_prompt(struct debugger *dbg, JSScript *scr
 
 					name=JS_GetFunctionId(fn);
 					if(name) {
-						JSSTRING_TO_STRING(dbg->cx, name, cp, NULL);
+						JSSTRING_TO_ASTRING(dbg->cx, name, cp, 128, NULL);
 						msg=xp_asprintf("in %s() ", cp);
 						if(msg) {
 							dbg->puts(msg);
-- 
GitLab