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 <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $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;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php