commit | 9853685931298ba02066ebb50a8377ad4aa80f00 | [log] [tgz] |
---|---|---|
author | Michael Lentine <mlentine@google.com> | Fri Oct 31 18:39:22 2014 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Fri Oct 31 18:39:23 2014 +0000 |
tree | c5e4dcb1647040771e4fc279eebb91f1089dfd8b | |
parent | affc4d809edbcb3b0e49e5ccc9821b9695a57d44 [diff] | |
parent | fae12d4fb45e2c4e8943811d784db04599c7e202 [diff] |
Merge "Fix output of pointers for 64bit devices." into lmp-mr1-dev
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; }