summaryrefslogtreecommitdiffstats
path: root/tbl_opts.c
diff options
context:
space:
mode:
Diffstat (limited to 'tbl_opts.c')
-rw-r--r--tbl_opts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tbl_opts.c b/tbl_opts.c
index 227deb1f..28b658f7 100644
--- a/tbl_opts.c
+++ b/tbl_opts.c
@@ -188,7 +188,7 @@ again: /*
/* Copy up to first non-alpha character. */
for (sv = *pos, i = 0; i < KEY_MAXNAME; i++, (*pos)++) {
- buf[i] = tolower(p[*pos]);
+ buf[i] = tolower((unsigned char)p[*pos]);
if ( ! isalpha((unsigned char)buf[i]))
break;
}