From ef1a9b029a9233bbf0ad2c9564ee663de674d2e8 Mon Sep 17 00:00:00 2001 From: Brendan Eich Date: Tue, 23 Sep 2008 00:59:59 -0700 Subject: [PATCH] JS_snprintf for portability, not snprintf (bustage fix). --- js/src/jstracer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/jstracer.cpp b/js/src/jstracer.cpp index 2ac3d106063..a7e430c3afa 100644 --- a/js/src/jstracer.cpp +++ b/js/src/jstracer.cpp @@ -153,7 +153,7 @@ jitstats_getProperty(JSContext *cx, JSObject *obj, jsid id, jsval *vp) return JS_TRUE; } char retstr[64]; - snprintf(retstr, JS_ARRAY_LENGTH(retstr), "%llu", result); + JS_snprintf(retstr, sizeof retstr, "%llu", result); *vp = STRING_TO_JSVAL(JS_NewStringCopyZ(cx, retstr)); return JS_TRUE; }