Commit d4afed6b authored by whesse@chromium.org's avatar whesse@chromium.org

Fix new strtod on Windows platform, using OS::SNPrintF instead of snprintf. Fixes error in r5600.

Review URL: http://codereview.chromium.org/3601018

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5602 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent e5bb73ac
......@@ -40,8 +40,9 @@ extern "C" double gay_strtod(const char* s00, const char** se);
double strtod(Vector<char> buffer, int exponent) {
char gay_buffer[1024];
Vector<char> gay_buffer_vector(gay_buffer, sizeof(gay_buffer));
buffer.start()[buffer.length()] = '\0';
snprintf(gay_buffer, 1024, "%se%d", buffer.start(), exponent);
OS::SNPrintF(gay_buffer_vector, "%se%d", buffer.start(), exponent);
return gay_strtod(gay_buffer, NULL);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment