summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCraig Silverstein <csilvers+gflags@google.com>2011-08-04 00:02:52 +0000
committerCraig Silverstein <csilvers+gflags@google.com>2011-08-04 00:02:52 +0000
commitbeb69a876be85f28ccb203d2ec7afcb91a9d2173 (patch)
treea6f8453c1d93606d9810b1f2e81c32f999f37203 /src
parent8233556d44d6d296130887d5065bff1c44ed1e1c (diff)
downloadgflags-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index f1d0016..f79d3f5 100644
--- a/src/util.h
+++ b/src/util.h
@@ -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;
}