commit | fae12d4fb45e2c4e8943811d784db04599c7e202 | [log] [tgz] |
---|---|---|
author | Michael Lentine <mlentine@google.com> | Fri Oct 31 11:08:19 2014 -0700 |
committer | Michael Lentine <mlentine@google.com> | Fri Oct 31 11:08:19 2014 -0700 |
tree | d18281e6daad5faae1f25240a56c0e1d43dd5c4f | |
parent | 7b97351b68e96ea67380140266abb897fe1be57d [diff] [blame] |
Fix output of pointers for 64bit devices. Change-Id: I279c1cf8d4c126b98f4a92ca807ade3749d01ff0
diff --git a/libs/binder/TextOutput.cpp b/libs/binder/TextOutput.cpp index db3e858..2ed5188 100644 --- a/libs/binder/TextOutput.cpp +++ b/libs/binder/TextOutput.cpp
@@ -116,8 +116,8 @@ 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; }