Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit f04b22eb authored by deuce's avatar deuce

Marco arg paranoia

parent 103e0bd1
...@@ -117,7 +117,7 @@ extern int thread_suid_broken; /* NPTL is no longer broken */ ...@@ -117,7 +117,7 @@ extern int thread_suid_broken; /* NPTL is no longer broken */
#if (JS_VERSION < 185) || (defined __cplusplus) #if (JS_VERSION < 185) || (defined __cplusplus)
#include <jsprf.h> /* JS-safe sprintf functions */ #include <jsprf.h> /* JS-safe sprintf functions */
#include <math.h> /* isnan() */ #include <math.h> /* isnan() */
#endif #endi)f
#if JS_VERSION >= 185 #if JS_VERSION >= 185
#define JS_DestroyScript(cx,script) #define JS_DestroyScript(cx,script)
#endif #endif
...@@ -128,13 +128,13 @@ extern int thread_suid_broken; /* NPTL is no longer broken */ ...@@ -128,13 +128,13 @@ extern int thread_suid_broken; /* NPTL is no longer broken */
size_t pos; \ size_t pos; \
const jschar *strval; \ const jschar *strval; \
\ \
ret=NULL; \ (ret)=NULL; \
if(str != NULL) { \ if((str) != NULL) { \
if((strval=JS_GetStringCharsAndLength(cx, str, &len))) { \ if((strval=JS_GetStringCharsAndLength((cx), (str), &len))) { \
if((ret=(char *)alloca(len+1))) { \ if(((ret)=(char *)alloca(len+1))) { \
for(pos=0; pos<len; pos++) \ for(pos=0; pos<len; pos++) \
ret[pos]=strval[pos]; \ (ret)[pos]=strval[pos]; \
ret[len]=0; \ (ret)[len]=0; \
} \ } \
} \ } \
} \ } \
...@@ -142,8 +142,8 @@ extern int thread_suid_broken; /* NPTL is no longer broken */ ...@@ -142,8 +142,8 @@ extern int thread_suid_broken; /* NPTL is no longer broken */
#define JSVALUE_TO_STRING(cx, val, ret) \ #define JSVALUE_TO_STRING(cx, val, ret) \
{ \ { \
JSString *str=JS_ValueToString(cx, val); \ JSString *str=JS_ValueToString((cx), (val)); \
JSSTRING_TO_STRING(cx, str, ret); \ JSSTRING_TO_STRING((cx), str, (ret)); \
} }
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment