diff options
author | Tor Andersson <tor@ghostscript.com> | 2009-02-19 18:45:34 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2009-02-19 18:45:34 +0100 |
commit | b26cafa2386003e5629abbdac10fa44be650d644 (patch) | |
tree | cd910b7457b2f0ccfe4f679f50a5972e8239d026 /stream/obj_print.c | |
parent | 2f54cd2414c1114d7f51ac2fc8d89f0b6b5278e8 (diff) | |
download | mupdf-b26cafa2386003e5629abbdac10fa44be650d644.tar.xz |
Fixed a typo. If fz_debug cannot fit the resulting string into a static buffer, it allocates a dynamic string. Unfortunately it still printed the static string. This fixes disappearing objects in the pdftool show command.
Diffstat (limited to 'stream/obj_print.c')
-rw-r--r-- | stream/obj_print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/obj_print.c b/stream/obj_print.c index a63100a1..4e321127 100644 --- a/stream/obj_print.c +++ b/stream/obj_print.c @@ -331,7 +331,7 @@ fz_debugobj(fz_obj *obj) if (!ptr) return; fz_sprintobj(ptr, n, obj, 0); - fputs(buf, stdout); + fputs(ptr, stdout); fputc('\n', stdout); fz_free(ptr); } |