From 442773abb37d9cb6115e092f718f5dc9b27a5cd1 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sat, 2 Mar 2002 15:43:19 +0000 Subject: [PATCH] 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 --- ext/exif/exif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.40.0