From 33a5595bc732637a910b85db62e71c2d9a1599c5 Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 16 Apr 2006 13:37:24 +0000 Subject: [PATCH] small fixes --- lib/png.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/png.c b/lib/png.c index 53da2c4..c1ce8d0 100644 --- a/lib/png.c +++ b/lib/png.c @@ -33,7 +33,7 @@ typedef struct _COL { int png_read_chunk(char (*head)[4], int*destlen, U8**destdata, FILE*fi) { unsigned int len; - unsigned char blen; + unsigned char blen[4]; if(destlen) *destlen=0; if(destdata) *destdata=0; if(!fread(&blen, 4, 1, fi)) { @@ -66,7 +66,7 @@ int png_read_chunk(char (*head)[4], int*destlen, U8**destdata, FILE*fi) unsigned int png_get_dword(FILE*fi) { unsigned int a; - unsigned char b; + unsigned char b[4]; fread(&b,4,1,fi); return b[0]<<24|b[1]<<16|b[2]<<8|b[3]; } -- 1.7.10.4