summaryrefslogtreecommitdiff
path: root/extra/config/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'extra/config/conf.c')
-rw-r--r--extra/config/conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/extra/config/conf.c b/extra/config/conf.c
index 910d52ce6..6bc5de943 100644
--- a/extra/config/conf.c
+++ b/extra/config/conf.c
@@ -78,7 +78,7 @@ static void strip(char *str)
char *p = str;
int l;
- while ((isspace(*p)))
+ while ((isspace((int)*p)))
p++;
l = strlen(p);
if (p != str)
@@ -86,7 +86,7 @@ static void strip(char *str)
if (!l)
return;
p = str + l - 1;
- while ((isspace(*p)))
+ while ((isspace((int)*p)))
*p-- = 0;
}
@@ -358,7 +358,7 @@ static int conf_choice(struct menu *menu)
continue;
}
if (line[0]) {
- len = strlen(line) - 1;
+ len = strlen(line);
line[len] = 0;
def_menu = NULL;