--- parser3/src/classes/image.C 2009/04/22 21:28:52 1.121 +++ parser3/src/classes/image.C 2009/05/14 08:10:09 1.123 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_IMAGE_C="$Date: 2009/04/22 21:28:52 $"; +static const char * const IDENT_IMAGE_C="$Date: 2009/05/14 08:10:09 $"; /* jpegsize: gets the width and height (in pixels) of a jpeg file @@ -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, String::L_TAINTED)); } if(components_count==1)