Commit beb69a87 authored by Craig Silverstein's avatar Craig Silverstein

Fix a bug in StringPrintf() that caused it to not print large strings properly.

R=nilton
DELTA=1  (0 added, 0 deleted, 1 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=2886


git-svn-id: https://gflags.googlecode.com/svn/trunk@59 6586e3c6-dcc4-952a-343f-ff74eb82781d
parent 8233556d
......@@ -287,7 +287,7 @@ inline void InternalStringPrintf(std::string* output, const char* format,
va_end(backup_ap);
if ((bytes_written >= 0) && (bytes_written < length)) {
output->append(space, bytes_written);
output->append(buf, bytes_written);
delete[] buf;
return;
}
......
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