Bug 1232113 - "Make the format specifiers in JS_snprintf() invocations more portable". r=jandem

This commit is contained in:
Wei Wu 2015-12-16 22:28:00 +01:00
parent b4bc48a873
commit f4960ee416

View File

@ -973,7 +973,7 @@ js::Disassemble1(JSContext* cx, HandleScript script, jsbytecode* pc,
default: {
char numBuf[12];
JS_snprintf(numBuf, sizeof numBuf, "%lx", (unsigned long) cs->format);
JS_snprintf(numBuf, sizeof numBuf, "%x", cs->format);
JS_ReportErrorNumber(cx, GetErrorMessage, nullptr,
JSMSG_UNKNOWN_FORMAT, numBuf);
return 0;