summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins/test/plugin_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/plugins/test/plugin_test.h')
-rw-r--r--webkit/glue/plugins/test/plugin_test.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/webkit/glue/plugins/test/plugin_test.h b/webkit/glue/plugins/test/plugin_test.h
index 1b5441e..0332339 100644
--- a/webkit/glue/plugins/test/plugin_test.h
+++ b/webkit/glue/plugins/test/plugin_test.h
@@ -77,13 +77,10 @@ class PluginTest {
void ExpectIntegerEqual(int val1, int val2) {
if (val1 != val2) {
std::string err;
- char buf[64]; // what's the right size?
err = "Expected Equal for '";
- sprintf_s(buf, "%d", val1);
- err.append(buf);
+ err.append(IntToString(val1));
err.append("' and '");
- sprintf_s(buf, "%d", val2);
- err.append(buf);
+ err.append(IntToString(val2));
err.append("'");
SetError(err);
}