From: Marcus Boerger Date: Sat, 2 Mar 2002 15:43:19 +0000 (+0000) Subject: Wrong brackets by rasmus...but sorry the fault was mine because i missed them... X-Git-Tag: php-4.2.0RC1~192 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=442773abb37d9cb6115e092f718f5dc9b27a5cd1;p=php Wrong brackets by rasmus...but sorry the fault was mine because i missed them... i also decided to call the first working version 1.0a by the way: currently i am working on tiff files and it looks like it may work --- diff --git a/ext/exif/exif.c b/ext/exif/exif.c index c9d0a82987..f34104f7be 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -178,7 +178,7 @@ function_entry exif_functions[] = { }; /* }}} */ -#define EXIF_VERSION "2.0a $Revision$" +#define EXIF_VERSION "1.0a $Revision$" PHP_MINFO_FUNCTION(exif); @@ -634,7 +634,7 @@ static int ProcessExifComment(char **pszInfoPtr,char *szValuePtr,int ByteCount) char mbBuffer[MB_CUR_MAX]; /* Copy the comment */ - if ( ((ByteCount>8) && !memcmp(szValuePtr, "UNICODE\0", 8)) || !memcmp(szValuePtr, "JIS\0\0\0\0\0", 8)) { + if ( (ByteCount>8) && (!memcmp(szValuePtr, "UNICODE\0", 8) || !memcmp(szValuePtr, "JIS\0\0\0\0\0", 8))) { /* treat JIS encoding as if it where UNICODE */ szValuePtr = szValuePtr+8; ByteCount -= 8;