Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: src/strtod.cc

Issue 3601018: Fix new strtod on Windows platform, using OS::SNPrintF instead of snprintf. ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/strtod.cc
===================================================================
--- src/strtod.cc (revision 5601)
+++ src/strtod.cc (working copy)
@@ -40,8 +40,9 @@
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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698