--- parser3/src/classes/image.C 2004/03/23 15:11:15 1.110 +++ parser3/src/classes/image.C 2005/08/05 13:02:57 1.111.8.1 @@ -1,11 +1,11 @@ /** @file Parser: @b image parser class. - Copyright(c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com) + Copyright(c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_IMAGE_C="$Date: 2004/03/23 15:11:15 $"; +static const char * const IDENT_IMAGE_C="$Date: 2005/08/05 13:02:57 $"; /* jpegsize: gets the width and height (in pixels) of a jpeg file @@ -402,7 +402,7 @@ static Value* parse_IFD_entry_formatted_ size_t length=components_count; // Data format is "YYYY:MM:DD HH:MM:SS"+0x00, total 20bytes if(length==JPEG_EXIF_DATE_CHARS - && isdigit(cstr[0]) + && isdigit((unsigned char)cstr[0]) && cstr[length-1]==0) { char cstr_writable[JPEG_EXIF_DATE_CHARS]; strcpy(cstr_writable, cstr);