--- namot-2.2.0-pre4/src/graphics.c.org 2006-03-03 22:33:11.000000000 -0500 +++ namot-2.2.0-pre4/src/graphics.c 2006-03-03 22:38:21.000000000 -0500 @@ -1331,7 +1331,7 @@ PackPNGRows( ) { int ctr1=0,ctr2=0; - char *srcptr=NULL; + unsigned char *srcptr=NULL; png_byte **row_pointers; long pos=0; void *Imageptr; --- namot-2.2.0-pre4/src/x.h.org 2006-03-03 22:39:06.000000000 -0500 +++ namot-2.2.0-pre4/src/x.h 2006-03-03 22:43:11.000000000 -0500 @@ -17,8 +17,9 @@ */ #define Long long +#ifndef HAVE_PNG_H #define Byte unsigned char - +#endif extern void InitX(); #ifdef GRAPHICS