2006-07-20 Steve Falkenburg <sfalken@apple.com>
[WebKit-https.git] / JavaScriptCore / kjs / function.cpp
index ffd611c53e9f6270deb5f23af7f19f437a32ab77..1c9abcfa8d058e52b8f23f015788551f9deddb0b 100644 (file)
@@ -947,7 +947,11 @@ UString escapeStringForPrettyPrinting(const UString& s)
             else {
                 char hexValue[7];
             
+#if PLATFORM(WIN_OS)
+                _snprintf(hexValue, 7, "\\u%04x", c);
+#else
                 snprintf(hexValue, 7, "\\u%04x", c);
+#endif
                 escapedString += hexValue;
             }
         }