diff options
Diffstat (limited to 'src/plugins/exiv2_extractor.cc')
-rw-r--r-- | src/plugins/exiv2_extractor.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/exiv2_extractor.cc b/src/plugins/exiv2_extractor.cc index a666d08..c3bd91a 100644 --- a/src/plugins/exiv2_extractor.cc +++ b/src/plugins/exiv2_extractor.cc | |||
@@ -54,7 +54,7 @@ addExiv2Tag(const Exiv2::ExifData& exifData, | |||
54 | if (md != exifData.end()) { | 54 | if (md != exifData.end()) { |
55 | std::string ccstr = Exiv2::toString(*md); | 55 | std::string ccstr = Exiv2::toString(*md); |
56 | str = ccstr.c_str(); | 56 | str = ccstr.c_str(); |
57 | while ( (strlen(str) > 0) && isspace(str[0])) str++; | 57 | while ( (strlen(str) > 0) && isspace((unsigned char) str[0])) str++; |
58 | if (strlen(str) > 0) | 58 | if (strlen(str) > 0) |
59 | ADD (str, type); | 59 | ADD (str, type); |
60 | md++; | 60 | md++; |
@@ -80,7 +80,7 @@ addIptcData(const Exiv2::IptcData& iptcData, | |||
80 | break; | 80 | break; |
81 | std::string ccstr = Exiv2::toString(*md); | 81 | std::string ccstr = Exiv2::toString(*md); |
82 | str = ccstr.c_str(); | 82 | str = ccstr.c_str(); |
83 | while ( (strlen(str) > 0) && isspace(str[0])) str++; | 83 | while ( (strlen(str) > 0) && isspace( (unsigned char) str[0])) str++; |
84 | if (strlen(str) > 0) | 84 | if (strlen(str) > 0) |
85 | ADD (str, type); | 85 | ADD (str, type); |
86 | md++; | 86 | md++; |
@@ -106,7 +106,7 @@ addXmpData(const Exiv2::XmpData& xmpData, | |||
106 | break; | 106 | break; |
107 | std::string ccstr = Exiv2::toString(*md); | 107 | std::string ccstr = Exiv2::toString(*md); |
108 | str = ccstr.c_str(); | 108 | str = ccstr.c_str(); |
109 | while ( (strlen(str) > 0) && isspace(str[0])) str++; | 109 | while ( (strlen(str) > 0) && isspace( (unsigned char) str[0])) str++; |
110 | if (strlen(str) > 0) | 110 | if (strlen(str) > 0) |
111 | ADD (str, type); | 111 | ADD (str, type); |
112 | md++; | 112 | md++; |