From f2bd9431de02db3ef44927417d7a28872fdff6b2 Mon Sep 17 00:00:00 2001 From: "alph@chromium.org" Date: Wed, 13 Mar 2013 18:35:30 +0000 Subject: [PATCH] Fix Windows build TBR=jkummerow Review URL: https://codereview.appspot.com/7790043 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13937 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/cctest/test-heap-profiler.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc index e1dea9d..6962484 100644 --- a/test/cctest/test-heap-profiler.cc +++ b/test/cctest/test-heap-profiler.cc @@ -1762,10 +1762,10 @@ TEST(ManyLocalsInSharedContext) { // Check all the objects have got their names. // ... well check just every 8th because otherwise it's too slow in debug. for (int i = 0; i < num_objects - 1; i += 8) { - char var_name[100]; - snprintf(var_name, sizeof(var_name), "f_%d", i); + i::EmbeddedVector var_name; + i::OS::SNPrintF(var_name, "f_%d", i); const v8::HeapGraphNode* f_object = GetProperty( - context_object, v8::HeapGraphEdge::kContextVariable, var_name); + context_object, v8::HeapGraphEdge::kContextVariable, var_name.start()); CHECK_NE(NULL, f_object); } } -- 2.7.4