[Pkg-mozext-commits] [adblock-plus] 276/464: Fixed missing function (snprintf isn't defined on Windows but JS_snprintf is)

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:25 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit 759c2404b86c98025dbe540a1df5492b09cfdd52
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Thu Aug 23 14:04:39 2012 +0200

    Fixed missing function (snprintf isn't defined on Windows but JS_snprintf is)
---
 jshydra_funcs.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jshydra_funcs.cpp b/jshydra_funcs.cpp
index b1e9076..d43b667 100644
--- a/jshydra_funcs.cpp
+++ b/jshydra_funcs.cpp
@@ -324,7 +324,7 @@ JSBool Hashcode(JSContext *cx, uintN argc, jsval *vp)
     static int counter = 0;
     char str[256];
     jsval val;
-    snprintf (str, sizeof (str), "%x", ++counter);
+    JS_snprintf (str, sizeof (str), "%x", ++counter);
     val = STRING_TO_JSVAL (JS_NewStringCopyZ (cx, str));
     JS_DefineProperty (cx, obj, "_hashcode", val,
                        NULL, NULL, JSPROP_PERMANENT | JSPROP_READONLY);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list