diff options
author | Tom Schouten <doelie@users.sourceforge.net> | 2006-09-01 13:45:31 +0000 |
---|---|---|
committer | Tom Schouten <doelie@users.sourceforge.net> | 2006-09-01 13:45:31 +0000 |
commit | 7591a024f184bd385d35583d19d86c1d5f2531ba (patch) | |
tree | 77aa0c44ccb700eb9a2b16e1b246e3c8026c40ed /system/png | |
parent | 91dd6b68f0f209ad015a303095bb1df018dca71e (diff) |
pdp current darcs merge
svn path=/trunk/externals/pdp/; revision=5816
Diffstat (limited to 'system/png')
-rw-r--r-- | system/png/pdp_png.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/png/pdp_png.c b/system/png/pdp_png.c index f751912..9ac2825 100644 --- a/system/png/pdp_png.c +++ b/system/png/pdp_png.c @@ -88,7 +88,7 @@ static int _cleanup(t_png_image *x) static int _open_read(t_png_image* x, char *file) { - char header[SIG_BYTES]; + unsigned char header[SIG_BYTES]; int is_png; x->x_fp = fopen(file, "r"); @@ -243,7 +243,7 @@ static int _buildstruct_write(t_png_image *x) static int _getimagedata(t_png_image *x) { int nbchans = 0; - char *image_data; + unsigned char *image_data; png_bytep row_pointers[x->x_height]; png_uint_32 i; @@ -277,7 +277,7 @@ static int _saveimagedata(t_png_image *x, int packet) png_uint_32 i; int nbchans; t_pdp *h = pdp_packet_header(packet); - char *image_data = (char *)pdp_packet_data(packet); + unsigned char *image_data = (unsigned char *)pdp_packet_data(packet); if (!h) return 0; if (PDP_BITMAP != h->type) return 0; |