diff options
author | Michael Lentine <mlentine@google.com> | 2014-10-31 11:08:19 -0700 |
---|---|---|
committer | Michael Lentine <mlentine@google.com> | 2014-10-31 11:08:19 -0700 |
commit | b2295a1cbdc45796b10bb020f20ded7a11bb5dec (patch) | |
tree | 6e214f6ac8ba1319009fd004581a8a69ddd837df /TextOutput.cpp | |
parent | cfedf7d9160d12293ac77fa298fcaaf23cc7818b (diff) | |
download | libhwbinder-b2295a1cbdc45796b10bb020f20ded7a11bb5dec.tar.gz |
Fix output of pointers for 64bit devices.
Change-Id: I279c1cf8d4c126b98f4a92ca807ade3749d01ff0
Diffstat (limited to 'TextOutput.cpp')
-rw-r--r-- | TextOutput.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TextOutput.cpp b/TextOutput.cpp index db3e858..2ed5188 100644 --- a/TextOutput.cpp +++ b/TextOutput.cpp @@ -116,8 +116,8 @@ TextOutput& operator<<(TextOutput& to, double val) TextOutput& operator<<(TextOutput& to, const void* val) { - char buf[16]; - sprintf(buf, "%p", val); + char buf[32]; + snprintf(buf, sizeof(buf), "%p", val); to.print(buf, strlen(buf)); return to; } |