summaryrefslogtreecommitdiff
path: root/ext/exif/exif.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-03-02 15:43:19 +0000
committerMarcus Boerger <helly@php.net>2002-03-02 15:43:19 +0000
commit442773abb37d9cb6115e092f718f5dc9b27a5cd1 (patch)
tree7a639b6cc07ff305499da3a446429b4b1ef2479c /ext/exif/exif.c
parente9ec537abae6d5fe81a717b9f8021cc11826d37b (diff)
downloadphp-git-442773abb37d9cb6115e092f718f5dc9b27a5cd1.tar.gz
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
Diffstat (limited to 'ext/exif/exif.c')
-rw-r--r--ext/exif/exif.c4
1 files 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;