summaryrefslogtreecommitdiffstats
path: root/runtime/vsprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/vsprintf.c')
-rw-r--r--runtime/vsprintf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/vsprintf.c b/runtime/vsprintf.c
index eb47e156..0e52f5c3 100644
--- a/runtime/vsprintf.c
+++ b/runtime/vsprintf.c
@@ -295,6 +295,7 @@ int _stp_vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
break;
case 'p':
+ /* Note that %p takes an int64_t argument. */
len = 2*sizeof(void *) + 2;
flags |= STP_ZEROPAD;