--- parser3/src/classes/image.C 2015/09/02 21:29:44 1.146 +++ parser3/src/classes/image.C 2015/10/09 11:42:38 1.148 @@ -25,7 +25,7 @@ #include "pa_vdate.h" #include "pa_table.h" -volatile const char * IDENT_IMAGE_C="$Id: image.C,v 1.146 2015/09/02 21:29:44 moko Exp $"; +volatile const char * IDENT_IMAGE_C="$Id: image.C,v 1.148 2015/10/09 11:42:38 moko Exp $"; // defines @@ -459,7 +459,7 @@ static Value* parse_IFD_entry_formatted_ } // date.C -tm cstr_to_time_t(char *); +tm cstr_to_time_t(char *, const char **); static Value* parse_IFD_entry_formatted_value(bool is_big, ushort format, size_t component_size, uint components_count, @@ -475,7 +475,7 @@ static Value* parse_IFD_entry_formatted_ strcpy(cstr_writable, cstr); try { - tm tmIn=cstr_to_time_t(cstr_writable); + tm tmIn=cstr_to_time_t(cstr_writable, 0); return new VDate(tmIn); } catch(...) { /*ignore bad date times*/ } @@ -577,7 +577,7 @@ static void parse_IFD_entry(HashStringVa if(Value* value=parse_IFD_entry_value(is_big, reader, tiff_base, entry)) { if(const char* name=(gps)?exif_gps_tag_value2name.get(tag):exif_tag_value2name.get(tag)) - hash.put(String::Body(name), value); + hash.put(name, value); else hash.put(String::Body::Format(tag), value); }