bzip2: fix lint warning about wrong usage of ctype.h functions
https://sourceware.org/bugzilla/show_bug.cgi?id=28283
This commit is contained in:
parent
9ecba37cf3
commit
71c250d570
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bzip2.c,v 1.5 2019/07/21 11:52:14 maya Exp $ */
|
||||
/* $NetBSD: bzip2.c,v 1.6 2021/08/27 17:31:48 rillig Exp $ */
|
||||
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
@ -1762,8 +1762,8 @@ void addFlagsFromEnvVar ( Cell** argList, const Char* varName )
|
|||
if (p[i] == 0) break;
|
||||
p += i;
|
||||
i = 0;
|
||||
while (isspace((Int32)(p[0]))) p++;
|
||||
while (p[i] != 0 && !isspace((Int32)(p[i]))) i++;
|
||||
while (isspace((UChar)(p[0]))) p++;
|
||||
while (p[i] != 0 && !isspace((UChar)(p[i]))) i++;
|
||||
if (i > 0) {
|
||||
k = i; if (k > FILE_NAME_LEN-10) k = FILE_NAME_LEN-10;
|
||||
for (j = 0; j < k; j++) tmpName[j] = p[j];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bzlib.c,v 1.4 2019/07/21 11:52:14 maya Exp $ */
|
||||
/* $NetBSD: bzlib.c,v 1.5 2021/08/27 17:31:48 rillig Exp $ */
|
||||
|
||||
|
||||
/*-------------------------------------------------------------*/
|
||||
|
@ -1410,7 +1410,7 @@ BZFILE * bzopen_or_bzdopen
|
|||
case 's':
|
||||
smallMode = 1; break;
|
||||
default:
|
||||
if (isdigit((unsigned char)(*mode))) {
|
||||
if (isdigit((UChar)(*mode))) {
|
||||
blockSize100k = *mode-BZ_HDR_0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue