cvs: php4 /ext/standard image.c

From: Date: Mon, 18 Nov 2002 15:49:06 +0000
Subject: cvs: php4 /ext/standard image.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-16409@lists.php.net to get a copy of this message
helly Mon Nov 18 10:49:06 2002 EDT Modified files: /php4/ext/standard image.c Log: Fixing unsigned/signed problems (and i thought about it before...) Index: php4/ext/standard/image.c diff -u php4/ext/standard/image.c:1.74 php4/ext/standard/image.c:1.75 --- php4/ext/standard/image.c:1.74 Mon Nov 18 10:45:27 2002 +++ php4/ext/standard/image.c Mon Nov 18 10:49:06 2002 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: image.c,v 1.74 2002/11/18 15:45:27 derick Exp $ */ +/* $Id: image.c,v 1.75 2002/11/18 15:49:06 helly Exp $ */ #include "php.h" #include <stdio.h> @@ -91,7 +91,7 @@ static struct gfxinfo *php_handle_gif (php_stream * stream TSRMLS_DC) { struct gfxinfo *result = NULL; - char dim[5]; + unsigned char dim[5]; if (php_stream_seek(stream, 3, SEEK_CUR)) return NULL; @@ -114,7 +114,7 @@ static struct gfxinfo *php_handle_psd (php_stream * stream TSRMLS_DC) { struct gfxinfo *result = NULL; - char dim[8]; + unsigned char dim[8]; if (php_stream_seek(stream, 11, SEEK_CUR)) return NULL; @@ -135,7 +135,7 @@ static struct gfxinfo *php_handle_bmp (php_stream * stream TSRMLS_DC) { struct gfxinfo *result = NULL; - char dim[12]; + unsigned char dim[12]; if (php_stream_seek(stream, 15, SEEK_CUR)) return NULL; @@ -276,7 +276,7 @@ static struct gfxinfo *php_handle_png (php_stream * stream TSRMLS_DC) { struct gfxinfo *result = NULL; - char dim[8]; + unsigned char dim[8]; if (php_stream_seek(stream, 8, SEEK_CUR)) return NULL;

« previous php.cvs (#16409) next »