* commit '078794ed377e7080ee155a632482bb98f1c9ade7': Fix output of pointers for 64bit devices.
This commit is contained in:
commit
fb66335bcc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user