cvs: php4(PHP_4_3) /ext/standard image.c
| From: | Marcus Boerger | Date: | Mon, 18 Nov 2002 15:50:49 +0000 |
| Subject: | cvs: php4(PHP_4_3) /ext/standard image.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-16410@lists.php.net to get a copy of this message | ||
helly Mon Nov 18 10:50:49 2002 EDT
Modified files: (Branch: PHP_4_3)
/php4/ext/standard image.c
Log:
Fixing unsigned/signed problems (and i thought about it before...)\n
Index: php4/ext/standard/image.c
diff -u php4/ext/standard/image.c:1.72.2.2 php4/ext/standard/image.c:1.72.2.3
--- php4/ext/standard/image.c:1.72.2.2 Mon Nov 18 10:46:01 2002
+++ php4/ext/standard/image.c Mon Nov 18 10:50:49 2002
@@ -16,7 +16,8 @@
| Marcus Boerger <helly@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: image.c,v 1.72.2.2 2002/11/18 15:46:01 derick Exp $ */
+
+/* $Id: image.c,v 1.72.2.3 2002/11/18 15:50:49 helly Exp $ */
#include "php.h"
#include <stdio.h>
@@ -90,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;
@@ -113,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;
@@ -134,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;
@@ -275,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;