summaryrefslogtreecommitdiff
path: root/archivers/libarchive/files/tar/getdate.c
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/libarchive/files/tar/getdate.c')
-rw-r--r--archivers/libarchive/files/tar/getdate.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/archivers/libarchive/files/tar/getdate.c b/archivers/libarchive/files/tar/getdate.c
index 8b0609575f1..895320bd670 100644
--- a/archivers/libarchive/files/tar/getdate.c
+++ b/archivers/libarchive/files/tar/getdate.c
@@ -113,7 +113,7 @@
#ifdef __FreeBSD__
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/usr.bin/tar/getdate.y,v 1.8 2007/03/11 10:36:42 kientzle Exp $");
+__FBSDID("$FreeBSD: src/usr.bin/tar/getdate.y,v 1.9 2007/07/20 01:27:50 kientzle Exp $");
#endif
#include <ctype.h>
@@ -2142,7 +2142,7 @@ yylex(void)
char buff[64];
for ( ; ; ) {
- while (isspace(*yyInput))
+ while (isspace((unsigned char)*yyInput))
yyInput++;
/* Skip parenthesized comments. */
@@ -2169,11 +2169,11 @@ yylex(void)
/* Force to lowercase and strip '.' characters. */
while (*src != '\0'
- && (isalnum(*src) || *src == '.')
+ && (isalnum((unsigned char)*src) || *src == '.')
&& i < sizeof(buff)-1) {
if (*src != '.') {
- if (isupper(*src))
- buff[i++] = tolower(*src);
+ if (isupper((unsigned char)*src))
+ buff[i++] = tolower((unsigned char)*src);
else
buff[i++] = *src;
}
@@ -2207,8 +2207,8 @@ yylex(void)
* Because '-' and '+' have other special meanings, I
* don't deal with signed numbers here.
*/
- if (isdigit(c = *yyInput)) {
- for (yylval.Number = 0; isdigit(c = *yyInput++); )
+ if (isdigit((unsigned char)(c = *yyInput))) {
+ for (yylval.Number = 0; isdigit((unsigned char)(c = *yyInput++)); )
yylval.Number = 10 * yylval.Number + c - '0';
yyInput--;
return (tUNUMBER);