From 7d6c74dd0592f9951cd520c99b820684f6e22fe9 Mon Sep 17 00:00:00 2001
From: cyan <>
Date: Mon, 17 Aug 2009 03:30:15 +0000
Subject: [PATCH] Fix segfault on Linux in jsexec, too.

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

diff --git a/src/sbbs3/jsexec.c b/src/sbbs3/jsexec.c
index 114a4fdc22..af22e9dbfe 100644
--- a/src/sbbs3/jsexec.c
+++ b/src/sbbs3/jsexec.c
@@ -618,7 +618,7 @@ static BOOL js_init(char** environ)
 	js_startup_t	startup;
 
 	memset(&startup,0,sizeof(startup));
-	startup.load_path=strListSplit(NULL, load_path_list, ",");
+	startup.load_path=strListSplitCopy(NULL, load_path_list, ",");
 
 	fprintf(statfp,"%s\n",(char *)JS_GetImplementationVersion());
 
-- 
GitLab