diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-09-18 19:51:04 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-09-19 19:58:25 +0800 |
commit | e22bf36d2db07a3557588ad7cb2d4ccfccb9679f (patch) | |
tree | b88b4addfd510b30cc0db5cb61b4c5fafe199a3d /source | |
parent | 73613ba7ab79ab8bc9e1a6d92ad1c98ca154908c (diff) | |
download | mupdf-e22bf36d2db07a3557588ad7cb2d4ccfccb9679f.tar.xz |
Make fz_printf() handle %lu.
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/printf.c | 3 |
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) |