]> granicus.if.org Git - php/commitdiff
Wrong brackets by rasmus...but sorry the fault was mine because i missed them...
authorMarcus Boerger <helly@php.net>
Sat, 2 Mar 2002 15:43:19 +0000 (15:43 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 2 Mar 2002 15:43:19 +0000 (15:43 +0000)
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

index c9d0a829877a1b324681b604e52d7337cc918b10..f34104f7be1928f21baff7974e5e47a5aa74822c 100644 (file)
@@ -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;