summaryrefslogtreecommitdiffstats
path: root/webkit/port
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-27 06:07:13 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-27 06:07:13 +0000
commita4864fde3684c7bcfadaff78ffeb9dd1d562d1c5 (patch)
treebfb1ceca57c4b261c6a91500a8e25d1248e357ff /webkit/port
parent3dbd395ce974856d7a2a769e26a6184732518c0b (diff)
downloadchromium_src-a4864fde3684c7bcfadaff78ffeb9dd1d562d1c5.zip
chromium_src-a4864fde3684c7bcfadaff78ffeb9dd1d562d1c5.tar.gz
chromium_src-a4864fde3684c7bcfadaff78ffeb9dd1d562d1c5.tar.bz2
Go back to using regular printf. snprintf doesn't seem to exist on Windows.
Review URL: http://codereview.chromium.org/28250 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10591 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port')
-rw-r--r--webkit/port/bindings/v8/np_v8object.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/webkit/port/bindings/v8/np_v8object.cpp b/webkit/port/bindings/v8/np_v8object.cpp
index 99d1582..731bd9d 100644
--- a/webkit/port/bindings/v8/np_v8object.cpp
+++ b/webkit/port/bindings/v8/np_v8object.cpp
@@ -26,6 +26,8 @@
#include "config.h"
+#include <stdio.h>
+
#define max max
#define min min
#include <v8.h>
@@ -82,7 +84,7 @@ static v8::Local<v8::String> NPIdentifierToV8Identifier(NPIdentifier name)
return v8::String::New(static_cast<const char *>(identifier->value.string));
char buf[32];
- snprintf(buf, 32, "%d", identifier->value.number);
+ sprintf(buf, "%d", identifier->value.number);
return v8::String::New(buf);
}