[jbig2-cvs] rev 245 - trunk

giles@ghostscript.com giles@ghostscript.com
Mon, 5 May 2003 10:22:41 -0700


Author: giles
Date: 2003-05-05 10:22:41 -0700 (Mon, 05 May 2003)
New Revision: 245

Modified:
   trunk/jbig2.c
Log:
Pass the segment number to fprintf in the default error handler.


Modified: trunk/jbig2.c
==============================================================================
--- trunk/jbig2.c	(original)
+++ trunk/jbig2.c	Mon May  5 10:22:41 2003
@@ -77,7 +77,7 @@
     /* report only fatal errors by default */
     if (severity == JBIG2_SEVERITY_FATAL) {
         fprintf(stderr, "jbig2 decoder FATAL ERROR: %s", msg);
-        if (seg_idx != -1) fprintf(stderr, " (segment 0x%02x)");
+        if (seg_idx != -1) fprintf(stderr, " (segment 0x%02x)", seg_idx);
         fprintf(stderr, "\n");
         fflush(stderr);
     }