summaryrefslogtreecommitdiff
path: root/source/fitz/printf.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-09-18 19:51:04 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-09-19 19:58:25 +0800
commite22bf36d2db07a3557588ad7cb2d4ccfccb9679f (patch)
treeb88b4addfd510b30cc0db5cb61b4c5fafe199a3d /source/fitz/printf.c
parent73613ba7ab79ab8bc9e1a6d92ad1c98ca154908c (diff)
downloadmupdf-e22bf36d2db07a3557588ad7cb2d4ccfccb9679f.tar.xz
Make fz_printf() handle %lu.
Diffstat (limited to 'source/fitz/printf.c')
-rw-r--r--source/fitz/printf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/fitz/printf.c b/source/fitz/printf.c
index 36f29094..718af4a4 100644
--- a/source/fitz/printf.c
+++ b/source/fitz/printf.c
@@ -192,7 +192,10 @@ fz_vsnprintf(char *buffer, size_t space, const char *fmt, va_list args)
if (c == 'l')
length = 64;
else
+ {
+ length = sizeof(long) * 8;
fmt--;
+ }
break;
case 'z':
if (sizeof(size_t) >= 8)