From 734fe93caf8107983c1099903aac050286598cda Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Thu, 14 Aug 2008 18:21:27 +0200 Subject: print trailing newline and flush output when debugging objects. --- stream/obj_print.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stream/obj_print.c b/stream/obj_print.c index 8d7ffd55..fcbebffd 100644 --- a/stream/obj_print.c +++ b/stream/obj_print.c @@ -315,6 +315,7 @@ void fz_debugobj(fz_obj *obj) { char buf[1024]; + char newline = '\n'; char *ptr; int n; @@ -333,5 +334,8 @@ fz_debugobj(fz_obj *obj) fwrite(ptr, 1, n, stdout); fz_free(ptr); } + + fwrite(&newline, 1, 1, stdout); + fflush(stdout); } -- cgit v1.2.3