http://netpbm.svn.sourceforge.net/viewvc/netpbm/stable/converter/ppm/xpmtoppm.c?view=patch&r1=995&r2=1076&pathrev=1076 --- converter/ppm/xpmtoppm.c 2010-02-17 08:13:53.000000000 -0500 +++ converter/ppm/xpmtoppm.c.oden 2010-02-17 08:14:04.000000000 -0500 @@ -161,7 +161,7 @@ static unsigned int getNumber(char * const p, unsigned int const size) { unsigned int retval; - char * q; + unsigned char * q; retval = 0; for (q = p; q < p+size; ++q) @@ -465,7 +465,8 @@ readXpm1Header(FILE * const stream, int char line[MAX_LINE+1], str1[MAX_LINE+1], str2[MAX_LINE+1]; char *t1; char *t2; - int format, v; + int format; + unsigned int v; int i, j; bool processedStaticChar; /* We have read up to and interpreted the "static char..." line */