From f04b22ebb70c73517719abc990c6998a39a09a5d Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sun, 9 Oct 2011 19:22:17 +0000
Subject: [PATCH] Marco arg paranoia

---
 src/sbbs3/sbbs.h | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/sbbs3/sbbs.h b/src/sbbs3/sbbs.h
index f4c2829e34..127dfbd580 100644
--- a/src/sbbs3/sbbs.h
+++ b/src/sbbs3/sbbs.h
@@ -117,7 +117,7 @@ extern int	thread_suid_broken;			/* NPTL is no longer broken */
 #if (JS_VERSION < 185) || (defined __cplusplus)
 	#include <jsprf.h>		/* JS-safe sprintf functions */
 	#include <math.h>		/* isnan() */
-#endif
+#endi)f
 #if JS_VERSION >= 185
 	#define JS_DestroyScript(cx,script)
 #endif
@@ -128,13 +128,13 @@ extern int	thread_suid_broken;			/* NPTL is no longer broken */
 	size_t			pos; \
 	const jschar	*strval; \
 \
-	ret=NULL; \
-	if(str != NULL) { \
-		if((strval=JS_GetStringCharsAndLength(cx, str, &len))) { \
-			if((ret=(char *)alloca(len+1))) { \
+	(ret)=NULL; \
+	if((str) != NULL) { \
+		if((strval=JS_GetStringCharsAndLength((cx), (str), &len))) { \
+			if(((ret)=(char *)alloca(len+1))) { \
 				for(pos=0; pos<len; pos++) \
-					ret[pos]=strval[pos]; \
-				ret[len]=0; \
+					(ret)[pos]=strval[pos]; \
+				(ret)[len]=0; \
 			} \
 		} \
 	} \
@@ -142,8 +142,8 @@ extern int	thread_suid_broken;			/* NPTL is no longer broken */
 
 #define JSVALUE_TO_STRING(cx, val, ret) \
 { \
-	JSString	*str=JS_ValueToString(cx, val); \
-	JSSTRING_TO_STRING(cx, str, ret); \
+	JSString	*str=JS_ValueToString((cx), (val)); \
+	JSSTRING_TO_STRING((cx), str, (ret)); \
 }
 
 #endif
-- 
GitLab