From 4a494fd7502cf11c6f47fa9774084bb40aef5db1 Mon Sep 17 00:00:00 2001 From: ellson Date: Wed, 31 May 2006 14:30:05 +0000 Subject: [PATCH] fix up use of 8bit characters --- lib/gvc/gvusershape.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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: */ -- 2.40.0