summaryrefslogtreecommitdiff
path: root/scripts/basic/split-include.c
diff options
context:
space:
mode:
authorDenys Vlasenko2021-04-14 19:12:43 +0200
committerDenys Vlasenko2021-04-14 19:12:43 +0200
commit1a45b2ccea94b0fc123798f276a0801413597880 (patch)
tree3368e80011c915cc19d3a83463fd9c0f7c9c6180 /scripts/basic/split-include.c
parenteb1b2902b8b7b7effdba711645288c64884fd3e7 (diff)
downloadbusybox-1a45b2ccea94b0fc123798f276a0801413597880.zip
busybox-1a45b2ccea94b0fc123798f276a0801413597880.tar.gz
fix "warning array subscript has type 'char'"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'scripts/basic/split-include.c')
-rw-r--r--scripts/basic/split-include.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/basic/split-include.c b/scripts/basic/split-include.c
index a38ac34..6ef2919 100644
--- a/scripts/basic/split-include.c
+++ b/scripts/basic/split-include.c
@@ -116,7 +116,7 @@ int main(int argc, const char * argv [])
/* We found #define CONFIG_foo or #undef CONFIG_foo.
* Make the output file name. */
str_config += sizeof(" CONFIG_") - 1;
- for (itarget = 0; !isspace(str_config[itarget]); itarget++)
+ for (itarget = 0; !isspace((unsigned char)str_config[itarget]); itarget++)
{
int c = (unsigned char) str_config[itarget];
if (isupper(c)) c = tolower(c);