summaryrefslogtreecommitdiff
path: root/Lib/javascript/jsc/javascripthelpers.swg
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/javascript/jsc/javascripthelpers.swg')
-rw-r--r--Lib/javascript/jsc/javascripthelpers.swg2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/javascript/jsc/javascripthelpers.swg b/Lib/javascript/jsc/javascripthelpers.swg
index 45765433e..bdd5142a5 100644
--- a/Lib/javascript/jsc/javascripthelpers.swg
+++ b/Lib/javascript/jsc/javascripthelpers.swg
@@ -46,7 +46,7 @@ SWIGINTERN bool JS_veto_set_variable(JSContextRef context, JSObjectRef thisObjec
int res;
JSStringGetUTF8CString(propertyName, buffer, 256);
- res = sprintf(msg, "Tried to write read-only variable: %s.", buffer);
+ res = SWIG_snprintf(msg, sizeof(msg), "Tried to write read-only variable: %s.", buffer);
if(res<0) {
SWIG_exception(SWIG_ERROR, "Tried to write read-only variable.");