diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/printf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/fitz/printf.c b/source/fitz/printf.c index 2246b4c9..36f29094 100644 --- a/source/fitz/printf.c +++ b/source/fitz/printf.c @@ -262,6 +262,12 @@ fz_vsnprintf(char *buffer, size_t space, const char *fmt, va_list args) f = va_arg(args, double); fmtfloat(&out, f); break; + case 'p': + length = 8 * sizeof(void *); + z = 2 * sizeof(void *); + fmtputc(&out, '0'); + fmtputc(&out, 'x'); + /* fallthrough */ case 'x': if (length == 64) { |