2006-07-20 Steve Falkenburg <sfalken@apple.com>
authorsfalken <sfalken@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Jul 2006 21:52:37 +0000 (21:52 +0000)
committersfalken <sfalken@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Jul 2006 21:52:37 +0000 (21:52 +0000)
        Fix the build

        * kjs/function.cpp:
        (KJS::escapeStringForPrettyPrinting):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15546 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/function.cpp

index cf18872e183947aaf9a489476a9fe8f428586472..84d3765f14466c5dcc5d52557b1e3f5614d13a28 100644 (file)
@@ -1,3 +1,10 @@
+2006-07-20  Steve Falkenburg  <sfalken@apple.com>
+
+        Fix the build
+
+        * kjs/function.cpp:
+        (KJS::escapeStringForPrettyPrinting):
+
 2006-07-19  Anders Carlsson  <acarlsson@apple.com>
 
         Reviewed by Darin.
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;
             }
         }