diff options
author | Craig Silverstein <csilvers+gflags@google.com> | 2011-08-04 00:02:52 +0000 |
---|---|---|
committer | Craig Silverstein <csilvers+gflags@google.com> | 2011-08-04 00:02:52 +0000 |
commit | beb69a876be85f28ccb203d2ec7afcb91a9d2173 (patch) | |
tree | a6f8453c1d93606d9810b1f2e81c32f999f37203 /src | |
parent | 8233556d44d6d296130887d5065bff1c44ed1e1c (diff) | |
download | gflags-beb69a876be85f28ccb203d2ec7afcb91a9d2173.tar.gz gflags-beb69a876be85f28ccb203d2ec7afcb91a9d2173.tar.bz2 gflags-beb69a876be85f28ccb203d2ec7afcb91a9d2173.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |