diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | doc/version.texi | 4 | ||||
-rw-r--r-- | po/de.po | 4 | ||||
-rw-r--r-- | po/fr.po | 4 | ||||
-rw-r--r-- | po/ga.po | 4 | ||||
-rw-r--r-- | po/libextractor.pot | 4 | ||||
-rw-r--r-- | po/nl.po | 4 | ||||
-rw-r--r-- | po/ro.po | 4 | ||||
-rw-r--r-- | po/rw.po | 4 | ||||
-rw-r--r-- | po/sv.po | 4 | ||||
-rw-r--r-- | po/vi.po | 4 | ||||
-rw-r--r-- | src/main/extract.c | 4 | ||||
-rw-r--r-- | src/plugins/deb_extractor.c | 2 | ||||
-rw-r--r-- | src/plugins/html_extractor.c | 6 | ||||
-rw-r--r-- | src/plugins/id3_extractor.c | 2 | ||||
-rw-r--r-- | src/plugins/jpeg_extractor.c | 2 | ||||
-rw-r--r-- | src/plugins/man_extractor.c | 2 | ||||
-rw-r--r-- | src/plugins/mime_extractor.c | 6 | ||||
-rw-r--r-- | src/plugins/odf_extractor.c | 2 |
19 files changed, 36 insertions, 33 deletions
@@ -1,3 +1,6 @@ | |||
1 | Sat Jun 12 16:23:14 CEST 2010 | ||
2 | Only pass 'unsigned char's to 'isspace' and similar functions. -CG | ||
3 | |||
1 | Sun Mar 14 00:09:45 CET 2010 | 4 | Sun 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 |
@@ -8,7 +8,7 @@ msgid "" | |||
8 | msgstr "" | 8 | msgstr "" |
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" | |||
891 | msgid "%s: option `-W %s' doesn't allow an argument\n" | 891 | msgid "%s: option `-W %s' doesn't allow an argument\n" |
892 | msgstr "%s: Option »-W %s« erwartet kein Argument\n" | 892 | msgstr "%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 |
896 | msgid "Initialization of plugin mechanism failed: %s!\n" | 896 | msgid "Initialization of plugin mechanism failed: %s!\n" |
897 | msgstr "Initialisierung des Plugin-Mechanismus' ist fehlgeschlagen: %s.\n" | 897 | msgstr "Initialisierung des Plugin-Mechanismus' ist fehlgeschlagen: %s.\n" |
@@ -7,7 +7,7 @@ msgid "" | |||
7 | msgstr "" | 7 | msgstr "" |
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" | |||
912 | msgid "%s: option `-W %s' doesn't allow an argument\n" | 912 | msgid "%s: option `-W %s' doesn't allow an argument\n" |
913 | msgstr "%s: l'option `-W %s' ne prend pas d'argument\n" | 913 | msgstr "%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 |
917 | msgid "Initialization of plugin mechanism failed: %s!\n" | 917 | msgid "Initialization of plugin mechanism failed: %s!\n" |
918 | msgstr "Echec de l'initialisation du module %s !\n" | 918 | msgstr "Echec de l'initialisation du module %s !\n" |
@@ -6,7 +6,7 @@ msgid "" | |||
6 | msgstr "" | 6 | msgstr "" |
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" | |||
889 | msgid "%s: option `-W %s' doesn't allow an argument\n" | 889 | msgid "%s: option `-W %s' doesn't allow an argument\n" |
890 | msgstr "%s: n cheadatear argint i ndiaidh na rogha `-W %s'\n" | 890 | msgstr "%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 |
894 | msgid "Initialization of plugin mechanism failed: %s!\n" | 894 | msgid "Initialization of plugin mechanism failed: %s!\n" |
895 | msgstr "Theip ar ths meicnocht na mbreisen: %s!\n" | 895 | msgstr "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 "" | |||
8 | msgstr "" | 8 | msgstr "" |
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 "" | |||
885 | msgid "%s: option `-W %s' doesn't allow an argument\n" | 885 | msgid "%s: option `-W %s' doesn't allow an argument\n" |
886 | msgstr "" | 886 | msgstr "" |
887 | 887 | ||
888 | #: src/main/extractor.c:2158 | 888 | #: src/main/extractor.c:2153 |
889 | #, c-format | 889 | #, c-format |
890 | msgid "Initialization of plugin mechanism failed: %s!\n" | 890 | msgid "Initialization of plugin mechanism failed: %s!\n" |
891 | msgstr "" | 891 | msgstr "" |
@@ -7,7 +7,7 @@ msgid "" | |||
7 | msgstr "" | 7 | msgstr "" |
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" | |||
891 | msgid "%s: option `-W %s' doesn't allow an argument\n" | 891 | msgid "%s: option `-W %s' doesn't allow an argument\n" |
892 | msgstr "%s: optie '-W %s' staat geen argument toe\n" | 892 | msgstr "%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 |
896 | msgid "Initialization of plugin mechanism failed: %s!\n" | 896 | msgid "Initialization of plugin mechanism failed: %s!\n" |
897 | msgstr "Initialisatie van plugin-mechanisme is mislukt: %s\n" | 897 | msgstr "Initialisatie van plugin-mechanisme is mislukt: %s\n" |
@@ -9,7 +9,7 @@ msgid "" | |||
9 | msgstr "" | 9 | msgstr "" |
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" | |||
893 | msgid "%s: option `-W %s' doesn't allow an argument\n" | 893 | msgid "%s: option `-W %s' doesn't allow an argument\n" |
894 | msgstr "%s: opiunea `-W %s' nu permite un argument\n" | 894 | msgstr "%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 |
898 | msgid "Initialization of plugin mechanism failed: %s!\n" | 898 | msgid "Initialization of plugin mechanism failed: %s!\n" |
899 | msgstr "iniializare mecanismului de plugin a euat: %s!\n" | 899 | msgstr "iniializare mecanismului de plugin a euat: %s!\n" |
@@ -16,7 +16,7 @@ msgid "" | |||
16 | msgstr "" | 16 | msgstr "" |
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" | |||
955 | msgid "%s: option `-W %s' doesn't allow an argument\n" | 955 | msgid "%s: option `-W %s' doesn't allow an argument\n" |
956 | msgstr "%s:Ihitamo Kwemerera" | 956 | msgstr "%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 |
960 | msgid "Initialization of plugin mechanism failed: %s!\n" | 960 | msgid "Initialization of plugin mechanism failed: %s!\n" |
961 | msgstr "Bya Byanze" | 961 | msgstr "Bya Byanze" |
@@ -7,7 +7,7 @@ msgid "" | |||
7 | msgstr "" | 7 | msgstr "" |
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" | |||
888 | msgid "%s: option `-W %s' doesn't allow an argument\n" | 888 | msgid "%s: option `-W %s' doesn't allow an argument\n" |
889 | msgstr "%s: flagga \"-W %s\" tillåter inte ett argument\n" | 889 | msgstr "%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 |
893 | msgid "Initialization of plugin mechanism failed: %s!\n" | 893 | msgid "Initialization of plugin mechanism failed: %s!\n" |
894 | msgstr "Initiering av insticksmekanism misslyckades: %s!\n" | 894 | msgstr "Initiering av insticksmekanism misslyckades: %s!\n" |
@@ -8,7 +8,7 @@ msgid "" | |||
8 | msgstr "" | 8 | msgstr "" |
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" | |||
887 | msgid "%s: option `-W %s' doesn't allow an argument\n" | 887 | msgid "%s: option `-W %s' doesn't allow an argument\n" |
888 | msgstr "%s: tùy chọn « -W %s » không cho phép đối số\n" | 888 | msgstr "%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 |
892 | msgid "Initialization of plugin mechanism failed: %s!\n" | 892 | msgid "Initialization of plugin mechanism failed: %s!\n" |
893 | msgstr "Việc khởi động cơ chế cầm phít bị lỗi: %s\n" | 893 | msgstr "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[] = { | |||
202 | static void | 202 | static void |
203 | trim (char *k) | 203 | trim (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); |