Adapt patch, and upstream it: https://github.com/malaterre/GDCM/pull/69
Gianfranco Costamagna
5 years ago
52 | 52 | int year, mon, day, hour, min, sec, n; |
53 | 53 | struct tm tmStruct; |
54 | 54 | //char buf[256]; |
55 | @@ -104,7 +104,7 @@ | |
55 | @@ -49,7 +49,8 @@ | |
56 | if (infoDict->lookup((char*)key, &obj)->isString()) | |
57 | #endif | |
58 | { | |
59 | - s = obj.getString()->getCString(); | |
60 | + const GooString* gs = obj.getString(); | |
61 | + s = gs->getCString(); | |
62 | if (s[0] == 'D' && s[1] == ':') | |
63 | { | |
64 | s += 2; | |
65 | @@ -104,7 +105,7 @@ | |
56 | 66 | static std::string getInfoString(Dict *infoDict, const char *key, UnicodeMap *uMap, GBool & unicode) |
57 | 67 | { |
58 | 68 | Object obj; |