summaryrefslogtreecommitdiffstats
path: root/lib/libedit/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libedit/common.c')
-rw-r--r--lib/libedit/common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libedit/common.c b/lib/libedit/common.c
index c8be2b7..a321c52 100644
--- a/lib/libedit/common.c
+++ b/lib/libedit/common.c
@@ -256,7 +256,7 @@ ed_move_to_beg(el, c)
if (el->el_map.type == MAP_VI) {
/* We want FIRST non space character */
- while (isspace(*el->el_line.cursor))
+ while (isspace((unsigned char) *el->el_line.cursor))
el->el_line.cursor++;
if (el->el_chared.c_vcmd.action & DELETE) {
cv_delfini(el);
@@ -408,7 +408,7 @@ ed_digit(el, c)
EditLine *el;
int c;
{
- if (!isdigit(c))
+ if (!isdigit((unsigned char) c))
return CC_ERROR;
if (el->el_state.doingarg) {
@@ -451,7 +451,7 @@ ed_argument_digit(el, c)
EditLine *el;
register int c;
{
- if (!isdigit(c))
+ if (!isdigit((unsigned char) c))
return CC_ERROR;
if (el->el_state.doingarg) {
OpenPOWER on IntegriCloud