From: ellson Date: Wed, 31 May 2006 14:30:05 +0000 (+0000) Subject: fix up use of 8bit characters X-Git-Tag: LAST_LIBGRAPH~32^2~6496 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a494fd7502cf11c6f47fa9774084bb40aef5db1;p=graphviz fix up use of 8bit characters --- diff --git a/lib/gvc/gvusershape.c b/lib/gvc/gvusershape.c index d9ee8a37d..884ddf07e 100644 --- a/lib/gvc/gvusershape.c +++ b/lib/gvc/gvusershape.c @@ -141,8 +141,7 @@ static void bmp_size (usershape_t *us) { } static void jpeg_size (usershape_t *us) { - unsigned char marker; - unsigned int length, size_x, size_y, junk; + unsigned int marker, length, size_x, size_y, junk; /* These are the markers that follow 0xff in the file. * Other markers implicitly have a 2-byte length field that follows. @@ -176,7 +175,7 @@ static void jpeg_size (usershape_t *us) { */ /* A stand-alone... */ - if (strchr (standalone_markers, marker)) + if (strchr ((char*)standalone_markers, marker)) continue; /* Incase of a 0xc0 marker: */