Fix output of pointers for 64bit devices.

Change-Id: I279c1cf8d4c126b98f4a92ca807ade3749d01ff0
This commit is contained in:
Michael Lentine 2014-10-31 11:08:19 -07:00
parent 7b97351b68
commit fae12d4fb4
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}