summaryrefslogtreecommitdiff
path: root/extra/config/mconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'extra/config/mconf.c')
-rw-r--r--extra/config/mconf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/extra/config/mconf.c b/extra/config/mconf.c
index 2ebc18819..dad2f5f9d 100644
--- a/extra/config/mconf.c
+++ b/extra/config/mconf.c
@@ -8,6 +8,7 @@
#include <sys/ioctl.h>
#include <sys/wait.h>
+#include <sys/termios.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
@@ -443,7 +444,7 @@ static void conf(struct menu *menu)
if (!type)
continue;
- for (i = 0; input_buf[i] && !isspace(input_buf[i]); i++)
+ for (i = 0; input_buf[i] && !isspace((int)input_buf[i]); i++)
;
if (i >= sizeof(active_entry))
i = sizeof(active_entry) - 1;