rev 292 - trunk

[email protected] Thu, 4 Dec 2003 09:08:59 -0800 (PST)
Newsgroups gmane.comp.printing.ghostscript.jbig2dec.cvs
Message-ID <[email protected]>
Author: giles
Date: 2003-12-01 09:53:45 -0800 (Mon, 01 Dec 2003)
New Revision: 292

Modified:
   trunk/jbig2_metadata.c
Log:
Correct a warning. Offset, then cast to non-const, not the other way around.


Modified: trunk/jbig2_metadata.c
===================================================================
--- trunk/jbig2_metadata.c	2003-12-01 17:44:19 UTC (rev 291)
+++ trunk/jbig2_metadata.c	2003-12-01 17:53:45 UTC (rev 292)
@@ -13,7 +13,7 @@
     Artifex Software, Inc.,  101 Lucas Valley Road #110,
     San Rafael, CA  94903, U.S.A., +1(415)492-9861.
 
-    $Id: jbig2_metadata.c,v 1.2 2003/03/05 03:32:41 giles Exp $
+    $Id$
 */
 
 #ifdef HAVE_CONFIG_H
@@ -99,8 +99,8 @@
 int jbig2_parse_comment_ascii(Jbig2Ctx *ctx, Jbig2Segment *segment,
                                const uint8_t *segment_data)
 {
-    char *s = (char *)segment_data + 4;
-    char *end = (char *)segment_data + segment->data_length;
+    char *s = (char *)(segment_data + 4);
+    char *end = (char *)(segment_data + segment->data_length);
     Jbig2Metadata *comment;
     char *key, *value;
     int key_length, value_length;