aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--doc/version.texi4
-rw-r--r--po/de.po4
-rw-r--r--po/fr.po4
-rw-r--r--po/ga.po4
-rw-r--r--po/libextractor.pot4
-rw-r--r--po/nl.po4
-rw-r--r--po/ro.po4
-rw-r--r--po/rw.po4
-rw-r--r--po/sv.po4
-rw-r--r--po/vi.po4
-rw-r--r--src/main/extract.c4
-rw-r--r--src/plugins/deb_extractor.c2
-rw-r--r--src/plugins/html_extractor.c6
-rw-r--r--src/plugins/id3_extractor.c2
-rw-r--r--src/plugins/jpeg_extractor.c2
-rw-r--r--src/plugins/man_extractor.c2
-rw-r--r--src/plugins/mime_extractor.c6
-rw-r--r--src/plugins/odf_extractor.c2
19 files changed, 36 insertions, 33 deletions
diff --git a/ChangeLog b/ChangeLog
index 43761d5..b521b58 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
1Sat Jun 12 16:23:14 CEST 2010
2 Only pass 'unsigned char's to 'isspace' and similar functions. -CG
3
1Sun Mar 14 00:09:45 CET 2010 4Sun Mar 14 00:09:45 CET 2010
2 Releasing libextractor 0.6.1. 5 Releasing libextractor 0.6.1.
3 6
diff --git a/doc/version.texi b/doc/version.texi
index a4e2bc7..45853c8 100644
--- a/doc/version.texi
+++ b/doc/version.texi
@@ -1,4 +1,4 @@
1@set UPDATED 17 May 2010 1@set UPDATED 1 April 2010
2@set UPDATED-MONTH May 2010 2@set UPDATED-MONTH April 2010
3@set EDITION 0.6.1 3@set EDITION 0.6.1
4@set VERSION 0.6.1 4@set VERSION 0.6.1
diff --git a/po/de.po b/po/de.po
index 8062c81..f9a8557 100644
--- a/po/de.po
+++ b/po/de.po
@@ -8,7 +8,7 @@ msgid ""
8msgstr "" 8msgstr ""
9"Project-Id-Version: libextractor 0.5.14\n" 9"Project-Id-Version: libextractor 0.5.14\n"
10"Report-Msgid-Bugs-To: libextractor@gnu.org\n" 10"Report-Msgid-Bugs-To: libextractor@gnu.org\n"
11"POT-Creation-Date: 2010-03-14 00:09+0100\n" 11"POT-Creation-Date: 2010-05-31 14:54+0200\n"
12"PO-Revision-Date: 2007-03-23 23:16+0100\n" 12"PO-Revision-Date: 2007-03-23 23:16+0100\n"
13"Last-Translator: Nils Durner <durner@gnunet.org>\n" 13"Last-Translator: Nils Durner <durner@gnunet.org>\n"
14"Language-Team: German <translation-team-de@lists.sourceforge.net>\n" 14"Language-Team: German <translation-team-de@lists.sourceforge.net>\n"
@@ -891,7 +891,7 @@ msgstr "%s: Option »-W %s« ist mehrdeutig\n"
891msgid "%s: option `-W %s' doesn't allow an argument\n" 891msgid "%s: option `-W %s' doesn't allow an argument\n"
892msgstr "%s: Option »-W %s« erwartet kein Argument\n" 892msgstr "%s: Option »-W %s« erwartet kein Argument\n"
893 893
894#: src/main/extractor.c:2158 894#: src/main/extractor.c:2153
895#, c-format 895#, c-format
896msgid "Initialization of plugin mechanism failed: %s!\n" 896msgid "Initialization of plugin mechanism failed: %s!\n"
897msgstr "Initialisierung des Plugin-Mechanismus' ist fehlgeschlagen: %s.\n" 897msgstr "Initialisierung des Plugin-Mechanismus' ist fehlgeschlagen: %s.\n"
diff --git a/po/fr.po b/po/fr.po
index f10422d..1e7bb19 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -7,7 +7,7 @@ msgid ""
7msgstr "" 7msgstr ""
8"Project-Id-Version: libextractor-0.5.20a\n" 8"Project-Id-Version: libextractor-0.5.20a\n"
9"Report-Msgid-Bugs-To: libextractor@gnu.org\n" 9"Report-Msgid-Bugs-To: libextractor@gnu.org\n"
10"POT-Creation-Date: 2010-03-14 00:09+0100\n" 10"POT-Creation-Date: 2010-05-31 14:54+0200\n"
11"PO-Revision-Date: 2008-08-24 19:08+0100\n" 11"PO-Revision-Date: 2008-08-24 19:08+0100\n"
12"Last-Translator: Nicolas Provost <nprovost@quadriv.com>\n" 12"Last-Translator: Nicolas Provost <nprovost@quadriv.com>\n"
13"Language-Team: French <traduc@traduc.org>\n" 13"Language-Team: French <traduc@traduc.org>\n"
@@ -912,7 +912,7 @@ msgstr "%s: l'option `-W %s' est ambiguë\n"
912msgid "%s: option `-W %s' doesn't allow an argument\n" 912msgid "%s: option `-W %s' doesn't allow an argument\n"
913msgstr "%s: l'option `-W %s' ne prend pas d'argument\n" 913msgstr "%s: l'option `-W %s' ne prend pas d'argument\n"
914 914
915#: src/main/extractor.c:2158 915#: src/main/extractor.c:2153
916#, c-format 916#, c-format
917msgid "Initialization of plugin mechanism failed: %s!\n" 917msgid "Initialization of plugin mechanism failed: %s!\n"
918msgstr "Echec de l'initialisation du module %s !\n" 918msgstr "Echec de l'initialisation du module %s !\n"
diff --git a/po/ga.po b/po/ga.po
index ceaa477..5e7918c 100644
--- a/po/ga.po
+++ b/po/ga.po
@@ -6,7 +6,7 @@ msgid ""
6msgstr "" 6msgstr ""
7"Project-Id-Version: libextractor 0.5.20\n" 7"Project-Id-Version: libextractor 0.5.20\n"
8"Report-Msgid-Bugs-To: libextractor@gnu.org\n" 8"Report-Msgid-Bugs-To: libextractor@gnu.org\n"
9"POT-Creation-Date: 2010-03-14 00:09+0100\n" 9"POT-Creation-Date: 2010-05-31 14:54+0200\n"
10"PO-Revision-Date: 2008-03-21 20:46-0700\n" 10"PO-Revision-Date: 2008-03-21 20:46-0700\n"
11"Last-Translator: Kevin Scannell <kscanne@gmail.com>\n" 11"Last-Translator: Kevin Scannell <kscanne@gmail.com>\n"
12"Language-Team: Irish <gaeilge-gnulinux@lists.sourceforge.net>\n" 12"Language-Team: Irish <gaeilge-gnulinux@lists.sourceforge.net>\n"
@@ -889,7 +889,7 @@ msgstr "%s: T an rogha `-W %s' dbhroch\n"
889msgid "%s: option `-W %s' doesn't allow an argument\n" 889msgid "%s: option `-W %s' doesn't allow an argument\n"
890msgstr "%s: n cheadatear argint i ndiaidh na rogha `-W %s'\n" 890msgstr "%s: n cheadatear argint i ndiaidh na rogha `-W %s'\n"
891 891
892#: src/main/extractor.c:2158 892#: src/main/extractor.c:2153
893#, c-format 893#, c-format
894msgid "Initialization of plugin mechanism failed: %s!\n" 894msgid "Initialization of plugin mechanism failed: %s!\n"
895msgstr "Theip ar ths meicnocht na mbreisen: %s!\n" 895msgstr "Theip ar ths meicnocht na mbreisen: %s!\n"
diff --git a/po/libextractor.pot b/po/libextractor.pot
index eb4208a..d13fcc5 100644
--- a/po/libextractor.pot
+++ b/po/libextractor.pot
@@ -8,7 +8,7 @@ msgid ""
8msgstr "" 8msgstr ""
9"Project-Id-Version: PACKAGE VERSION\n" 9"Project-Id-Version: PACKAGE VERSION\n"
10"Report-Msgid-Bugs-To: libextractor@gnu.org\n" 10"Report-Msgid-Bugs-To: libextractor@gnu.org\n"
11"POT-Creation-Date: 2010-03-14 00:09+0100\n" 11"POT-Creation-Date: 2010-05-31 14:54+0200\n"
12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14"Language-Team: LANGUAGE <LL@li.org>\n" 14"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -885,7 +885,7 @@ msgstr ""
885msgid "%s: option `-W %s' doesn't allow an argument\n" 885msgid "%s: option `-W %s' doesn't allow an argument\n"
886msgstr "" 886msgstr ""
887 887
888#: src/main/extractor.c:2158 888#: src/main/extractor.c:2153
889#, c-format 889#, c-format
890msgid "Initialization of plugin mechanism failed: %s!\n" 890msgid "Initialization of plugin mechanism failed: %s!\n"
891msgstr "" 891msgstr ""
diff --git a/po/nl.po b/po/nl.po
index c225d9e..72861aa 100644
--- a/po/nl.po
+++ b/po/nl.po
@@ -7,7 +7,7 @@ msgid ""
7msgstr "" 7msgstr ""
8"Project-Id-Version: libextractor-0.5.20a\n" 8"Project-Id-Version: libextractor-0.5.20a\n"
9"Report-Msgid-Bugs-To: libextractor@gnu.org\n" 9"Report-Msgid-Bugs-To: libextractor@gnu.org\n"
10"POT-Creation-Date: 2010-03-14 00:09+0100\n" 10"POT-Creation-Date: 2010-05-31 14:54+0200\n"
11"PO-Revision-Date: 2009-03-08 16:59+0100\n" 11"PO-Revision-Date: 2009-03-08 16:59+0100\n"
12"Last-Translator: Erwin Poeze <erwin.poeze@gmail.com>\n" 12"Last-Translator: Erwin Poeze <erwin.poeze@gmail.com>\n"
13"Language-Team: Dutch <vertaling@vrijschrift.org>\n" 13"Language-Team: Dutch <vertaling@vrijschrift.org>\n"
@@ -891,7 +891,7 @@ msgstr "%s: optie '-W %s' is niet eenduidig\n"
891msgid "%s: option `-W %s' doesn't allow an argument\n" 891msgid "%s: option `-W %s' doesn't allow an argument\n"
892msgstr "%s: optie '-W %s' staat geen argument toe\n" 892msgstr "%s: optie '-W %s' staat geen argument toe\n"
893 893
894#: src/main/extractor.c:2158 894#: src/main/extractor.c:2153
895#, c-format 895#, c-format
896msgid "Initialization of plugin mechanism failed: %s!\n" 896msgid "Initialization of plugin mechanism failed: %s!\n"
897msgstr "Initialisatie van plugin-mechanisme is mislukt: %s\n" 897msgstr "Initialisatie van plugin-mechanisme is mislukt: %s\n"
diff --git a/po/ro.po b/po/ro.po
index 8615744..3e66d56 100644
--- a/po/ro.po
+++ b/po/ro.po
@@ -9,7 +9,7 @@ msgid ""
9msgstr "" 9msgstr ""
10"Project-Id-Version: libextractor 0.5.3\n" 10"Project-Id-Version: libextractor 0.5.3\n"
11"Report-Msgid-Bugs-To: libextractor@gnu.org\n" 11"Report-Msgid-Bugs-To: libextractor@gnu.org\n"
12"POT-Creation-Date: 2010-03-14 00:09+0100\n" 12"POT-Creation-Date: 2010-05-31 14:54+0200\n"
13"PO-Revision-Date: 2005-08-16 12:00-0500\n" 13"PO-Revision-Date: 2005-08-16 12:00-0500\n"
14"Last-Translator: Laurentiu Buzdugan <lbuz@rolix.org>\n" 14"Last-Translator: Laurentiu Buzdugan <lbuz@rolix.org>\n"
15"Language-Team: Romanian <translation-team-ro@lists.sourceforge.net>\n" 15"Language-Team: Romanian <translation-team-ro@lists.sourceforge.net>\n"
@@ -893,7 +893,7 @@ msgstr "%s: opiunea `-W %s' este ambigu\n"
893msgid "%s: option `-W %s' doesn't allow an argument\n" 893msgid "%s: option `-W %s' doesn't allow an argument\n"
894msgstr "%s: opiunea `-W %s' nu permite un argument\n" 894msgstr "%s: opiunea `-W %s' nu permite un argument\n"
895 895
896#: src/main/extractor.c:2158 896#: src/main/extractor.c:2153
897#, c-format 897#, c-format
898msgid "Initialization of plugin mechanism failed: %s!\n" 898msgid "Initialization of plugin mechanism failed: %s!\n"
899msgstr "iniializare mecanismului de plugin a euat: %s!\n" 899msgstr "iniializare mecanismului de plugin a euat: %s!\n"
diff --git a/po/rw.po b/po/rw.po
index 1122f1b..96e5dac 100644
--- a/po/rw.po
+++ b/po/rw.po
@@ -16,7 +16,7 @@ msgid ""
16msgstr "" 16msgstr ""
17"Project-Id-Version: libextractor 0.4.2\n" 17"Project-Id-Version: libextractor 0.4.2\n"
18"Report-Msgid-Bugs-To: libextractor@gnu.org\n" 18"Report-Msgid-Bugs-To: libextractor@gnu.org\n"
19"POT-Creation-Date: 2010-03-14 00:09+0100\n" 19"POT-Creation-Date: 2010-05-31 14:54+0200\n"
20"PO-Revision-Date: 2005-04-04 10:55-0700\n" 20"PO-Revision-Date: 2005-04-04 10:55-0700\n"
21"Last-Translator: Steven Michael Murphy <murf@e-tools.com>\n" 21"Last-Translator: Steven Michael Murphy <murf@e-tools.com>\n"
22"Language-Team: Kinyarwanda <translation-team-rw@lists.sourceforge.net>\n" 22"Language-Team: Kinyarwanda <translation-team-rw@lists.sourceforge.net>\n"
@@ -955,7 +955,7 @@ msgstr "%s:Ihitamo ni"
955msgid "%s: option `-W %s' doesn't allow an argument\n" 955msgid "%s: option `-W %s' doesn't allow an argument\n"
956msgstr "%s:Ihitamo Kwemerera" 956msgstr "%s:Ihitamo Kwemerera"
957 957
958#: src/main/extractor.c:2158 958#: src/main/extractor.c:2153
959#, fuzzy, c-format 959#, fuzzy, c-format
960msgid "Initialization of plugin mechanism failed: %s!\n" 960msgid "Initialization of plugin mechanism failed: %s!\n"
961msgstr "Bya Byanze" 961msgstr "Bya Byanze"
diff --git a/po/sv.po b/po/sv.po
index 7c6cf1b..11cded4 100644
--- a/po/sv.po
+++ b/po/sv.po
@@ -7,7 +7,7 @@ msgid ""
7msgstr "" 7msgstr ""
8"Project-Id-Version: libextractor 0.5.22\n" 8"Project-Id-Version: libextractor 0.5.22\n"
9"Report-Msgid-Bugs-To: libextractor@gnu.org\n" 9"Report-Msgid-Bugs-To: libextractor@gnu.org\n"
10"POT-Creation-Date: 2010-03-14 00:09+0100\n" 10"POT-Creation-Date: 2010-05-31 14:54+0200\n"
11"PO-Revision-Date: 2009-05-12 17:45+0100\n" 11"PO-Revision-Date: 2009-05-12 17:45+0100\n"
12"Last-Translator: Daniel Nylander <po@danielnylander.se>\n" 12"Last-Translator: Daniel Nylander <po@danielnylander.se>\n"
13"Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n" 13"Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n"
@@ -888,7 +888,7 @@ msgstr "%s: flagga \"-W %s\" är tvetydig\n"
888msgid "%s: option `-W %s' doesn't allow an argument\n" 888msgid "%s: option `-W %s' doesn't allow an argument\n"
889msgstr "%s: flagga \"-W %s\" tillåter inte ett argument\n" 889msgstr "%s: flagga \"-W %s\" tillåter inte ett argument\n"
890 890
891#: src/main/extractor.c:2158 891#: src/main/extractor.c:2153
892#, c-format 892#, c-format
893msgid "Initialization of plugin mechanism failed: %s!\n" 893msgid "Initialization of plugin mechanism failed: %s!\n"
894msgstr "Initiering av insticksmekanism misslyckades: %s!\n" 894msgstr "Initiering av insticksmekanism misslyckades: %s!\n"
diff --git a/po/vi.po b/po/vi.po
index 7fb312c..b4552d0 100644
--- a/po/vi.po
+++ b/po/vi.po
@@ -8,7 +8,7 @@ msgid ""
8msgstr "" 8msgstr ""
9"Project-Id-Version: libextractor 0.6.0\n" 9"Project-Id-Version: libextractor 0.6.0\n"
10"Report-Msgid-Bugs-To: libextractor@gnu.org\n" 10"Report-Msgid-Bugs-To: libextractor@gnu.org\n"
11"POT-Creation-Date: 2010-03-14 00:09+0100\n" 11"POT-Creation-Date: 2010-05-31 14:54+0200\n"
12"PO-Revision-Date: 2010-02-11 00:13+0930\n" 12"PO-Revision-Date: 2010-02-11 00:13+0930\n"
13"Last-Translator: Clytie Siddall <clytie@riverland.net.au>\n" 13"Last-Translator: Clytie Siddall <clytie@riverland.net.au>\n"
14"Language-Team: Vietnamese <vi-VN@googlegroups.com>\n" 14"Language-Team: Vietnamese <vi-VN@googlegroups.com>\n"
@@ -887,7 +887,7 @@ msgstr "%s: tùy chọn « -W %s » là mơ hồ\n"
887msgid "%s: option `-W %s' doesn't allow an argument\n" 887msgid "%s: option `-W %s' doesn't allow an argument\n"
888msgstr "%s: tùy chọn « -W %s » không cho phép đối số\n" 888msgstr "%s: tùy chọn « -W %s » không cho phép đối số\n"
889 889
890#: src/main/extractor.c:2158 890#: src/main/extractor.c:2153
891#, c-format 891#, c-format
892msgid "Initialization of plugin mechanism failed: %s!\n" 892msgid "Initialization of plugin mechanism failed: %s!\n"
893msgstr "Việc khởi động cơ chế cầm phít bị lỗi: %s\n" 893msgstr "Việc khởi động cơ chế cầm phít bị lỗi: %s\n"
diff --git a/src/main/extract.c b/src/main/extract.c
index f1fbc9a..0df0abf 100644
--- a/src/main/extract.c
+++ b/src/main/extract.c
@@ -128,7 +128,7 @@ static void formatHelp(const char * general,
128 OUTER: 128 OUTER:
129 while (ml - p > 78 - slen) { 129 while (ml - p > 78 - slen) {
130 for (j=p+78-slen;j>p;j--) { 130 for (j=p+78-slen;j>p;j--) {
131 if (isspace(trans[j])) { 131 if (isspace( (unsigned char) trans[j])) {
132 scp = malloc(j-p+1); 132 scp = malloc(j-p+1);
133 memcpy(scp, 133 memcpy(scp,
134 &trans[p], 134 &trans[p],
@@ -372,7 +372,7 @@ str_splice(const char * title,
372 if (! isalnum(temp[i]) ) 372 if (! isalnum(temp[i]) )
373 temp[i] = '_'; 373 temp[i] = '_';
374 else 374 else
375 temp[i] = tolower(temp[i]); 375 temp[i] = tolower( (unsigned int) temp[i]);
376 } 376 }
377 return temp; 377 return temp;
378} 378}
diff --git a/src/plugins/deb_extractor.c b/src/plugins/deb_extractor.c
index 9fc091c..09a5a8e 100644
--- a/src/plugins/deb_extractor.c
+++ b/src/plugins/deb_extractor.c
@@ -104,7 +104,7 @@ processControl (const char *data,
104 colon++; 104 colon++;
105 } 105 }
106 colon++; 106 colon++;
107 while ((colon < size) && (isspace (data[colon]))) 107 while ((colon < size) && (isspace ((unsigned char) data[colon])))
108 colon++; 108 colon++;
109 eol = colon; 109 eol = colon;
110 while ((eol < size) && 110 while ((eol < size) &&
diff --git a/src/plugins/html_extractor.c b/src/plugins/html_extractor.c
index 5bd94b0..243cf16 100644
--- a/src/plugins/html_extractor.c
+++ b/src/plugins/html_extractor.c
@@ -100,7 +100,7 @@ skipWhitespace (size_t * pos, const char *data, size_t size)
100{ 100{
101 size_t p = *pos; 101 size_t p = *pos;
102 102
103 while ((p < size) && (isspace (data[p]))) 103 while ((p < size) && (isspace ( (unsigned char) data[p])))
104 { 104 {
105 if (data[p] == '\0') 105 if (data[p] == '\0')
106 return 0; 106 return 0;
@@ -115,7 +115,7 @@ skipLetters (size_t * pos, const char *data, size_t size)
115{ 115{
116 size_t p = *pos; 116 size_t p = *pos;
117 117
118 while ((p < size) && (isalpha (data[p]))) 118 while ((p < size) && (isalpha ( (unsigned char) data[p])))
119 { 119 {
120 if (data[p] == '\0') 120 if (data[p] == '\0')
121 return 0; 121 return 0;
@@ -168,7 +168,7 @@ findEntry (const char *key,
168 } 168 }
169 else 169 else
170 { 170 {
171 while ((start < end) && (!isspace (*start))) 171 while ((start < end) && (!isspace ( (unsigned char) *start)))
172 start++; 172 start++;
173 } 173 }
174 *mend = start; 174 *mend = start;
diff --git a/src/plugins/id3_extractor.c b/src/plugins/id3_extractor.c
index 1426d01..4c89075 100644
--- a/src/plugins/id3_extractor.c
+++ b/src/plugins/id3_extractor.c
@@ -202,7 +202,7 @@ static const char *const genre_names[] = {
202static void 202static void
203trim (char *k) 203trim (char *k)
204{ 204{
205 while ((strlen (k) > 0) && (isspace (k[strlen (k) - 1]))) 205 while ((strlen (k) > 0) && (isspace ((unsigned char) k[strlen (k) - 1])))
206 k[strlen (k) - 1] = '\0'; 206 k[strlen (k) - 1] = '\0';
207} 207}
208 208
diff --git a/src/plugins/jpeg_extractor.c b/src/plugins/jpeg_extractor.c
index 1ef4124..98b2063 100644
--- a/src/plugins/jpeg_extractor.c
+++ b/src/plugins/jpeg_extractor.c
@@ -118,7 +118,7 @@ process_COM (const unsigned char **data, const unsigned char *end)
118 ch = NEXTC (data, end); 118 ch = NEXTC (data, end);
119 if ((ch == '\r') || (ch == '\n')) 119 if ((ch == '\r') || (ch == '\n'))
120 comment[pos++] = '\n'; 120 comment[pos++] = '\n';
121 else if (isprint (ch)) 121 else if (isprint ((unsigned char) ch))
122 comment[pos++] = ch; 122 comment[pos++] = ch;
123 length--; 123 length--;
124 } 124 }
diff --git a/src/plugins/man_extractor.c b/src/plugins/man_extractor.c
index 15835ec..90a0631 100644
--- a/src/plugins/man_extractor.c
+++ b/src/plugins/man_extractor.c
@@ -116,7 +116,7 @@ EXTRACTOR_man_extract (const char *buf,
116 &buf[pos], 116 &buf[pos],
117 xlen)) || ((pos != 0) && (buf[pos - 1] != '\n')))) 117 xlen)) || ((pos != 0) && (buf[pos - 1] != '\n'))))
118 { 118 {
119 if (!isgraph (buf[pos]) && !isspace (buf[pos])) 119 if (!isgraph (buf[pos]) && !isspace ((unsigned char) buf[pos]))
120 return 0; 120 return 0;
121 pos++; 121 pos++;
122 } 122 }
diff --git a/src/plugins/mime_extractor.c b/src/plugins/mime_extractor.c
index 87f1742..1413862 100644
--- a/src/plugins/mime_extractor.c
+++ b/src/plugins/mime_extractor.c
@@ -129,7 +129,7 @@ svgMatcher (const char *data, size_t len, void *cls)
129 129
130 while (i < len) 130 while (i < len)
131 { 131 {
132 if (!isprint (data[i])) 132 if (!isprint ( (unsigned char) data[i]))
133 return 0; 133 return 0;
134 switch (state) 134 switch (state)
135 { 135 {
@@ -137,7 +137,7 @@ svgMatcher (const char *data, size_t len, void *cls)
137 if (i + 6 >= len) 137 if (i + 6 >= len)
138 return 0; 138 return 0;
139 else if (memcmp (data + i, "<?xml", 5) == 0 139 else if (memcmp (data + i, "<?xml", 5) == 0
140 && isspace (*(data + i + 5))) 140 && isspace ( (unsigned char) *(data + i + 5)))
141 state = XMLCLOSE; 141 state = XMLCLOSE;
142 break; 142 break;
143 case XMLCLOSE: 143 case XMLCLOSE:
@@ -150,7 +150,7 @@ svgMatcher (const char *data, size_t len, void *cls)
150 if (i + 5 >= len) 150 if (i + 5 >= len)
151 return 0; 151 return 0;
152 else if (memcmp (data + i, "<svg", 4) == 0 152 else if (memcmp (data + i, "<svg", 4) == 0
153 && isspace (*(data + i + 4))) 153 && isspace ( (unsigned char) *(data + i + 4)))
154 return 1; 154 return 1;
155 break; 155 break;
156 default: 156 default:
diff --git a/src/plugins/odf_extractor.c b/src/plugins/odf_extractor.c
index 4ac3e91..cd75c2a 100644
--- a/src/plugins/odf_extractor.c
+++ b/src/plugins/odf_extractor.c
@@ -93,7 +93,7 @@ libextractor_oo_getmimetype(EXTRACTOR_unzip_file uf) {
93 /* found something */ 93 /* found something */
94 buf[buf_size] = '\0'; 94 buf[buf_size] = '\0';
95 while ( (0 > buf_size) && 95 while ( (0 > buf_size) &&
96 isspace(buf[buf_size - 1])) 96 isspace( (unsigned char) buf[buf_size - 1]))
97 buf[--buf_size] = '\0'; 97 buf[--buf_size] = '\0';
98 if('\0' == buf[0]) { 98 if('\0' == buf[0]) {
99 free(buf); 99 free(buf);