--- parser3/src/classes/image.C 2009/04/23 07:02:39 1.119.2.1 +++ parser3/src/classes/image.C 2009/05/13 07:36:05 1.122 @@ -1,11 +1,11 @@ /** @file Parser: @b image parser class. - Copyright(c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) + Copyright(c) 2001-2009 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_IMAGE_C="$Date: 2009/04/23 07:02:39 $"; +static const char * const IDENT_IMAGE_C="$Date: 2009/05/13 07:36:05 $"; /* jpegsize: gets the width and height (in pixels) of a jpeg file @@ -453,9 +453,9 @@ static Value* parse_IFD_entry_formatted_ } /* case 11: // single float - todo + @todo case 12: // double float - todo + @todo */ }; @@ -484,9 +484,7 @@ static Value* parse_IFD_entry_formatted_ catch(...) { /*ignore bad date times*/ } } - if(const char* premature_zero_pos=(const char* )memchr(cstr, 0, length)) - length=premature_zero_pos-cstr; - return new VString(*new String(cstr, length, true/*tainted*/)); + return new VString(*new String(cstr, true/*tainted*/)); } if(components_count==1)