am 98536859: Merge "Fix output of pointers for 64bit devices." into lmp-mr1-dev

* commit '9853685931298ba02066ebb50a8377ad4aa80f00':
  Fix output of pointers for 64bit devices.
This commit is contained in:
Michael Lentine 2014-10-31 22:58:19 +00:00 committed by Android Git Automerger
commit 078794ed37

View File

@ -116,8 +116,8 @@ TextOutput& operator<<(TextOutput& to, double val)
TextOutput& operator<<(TextOutput& to, const void* val) TextOutput& operator<<(TextOutput& to, const void* val)
{ {
char buf[16]; char buf[32];
sprintf(buf, "%p", val); snprintf(buf, sizeof(buf), "%p", val);
to.print(buf, strlen(buf)); to.print(buf, strlen(buf));
return to; return to;
} }