summaryrefslogtreecommitdiff
path: root/src/TextAction.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/TextAction.c')
-rw-r--r--src/TextAction.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/TextAction.c b/src/TextAction.c
index aabeffd..88bf202 100644
--- a/src/TextAction.c
+++ b/src/TextAction.c
@@ -2607,7 +2607,7 @@ InsertNewLineAndIndent(Widget w, XEvent *event, String *p _X_UNUSED, Cardinal *n
strcpy(++ptr, line_to_ip);
length++;
- while (length && (isspace(*ptr) || (*ptr == XawTAB)))
+ while (length && (isspace((unsigned char)*ptr) || (*ptr == XawTAB)))
ptr++, length--;
*ptr = '\0';
text.length = (int)strlen(text.ptr);
@@ -3393,7 +3393,7 @@ Numeric(Widget w, XEvent *event, String *params, Cardinal *num_params)
long mult = ctx->text.mult;
if (*num_params != 1 || strlen(params[0]) != 1
- || (!isdigit(params[0][0])
+ || (!isdigit((unsigned char)params[0][0])
&& (params[0][0] != '-' || mult != 0))) {
char err_buf[256];
@@ -3591,7 +3591,7 @@ StripOutOldCRs(TextWidget ctx, XawTextPosition from, XawTextPosition to,
if (!iswspace(((wchar_t*)buf)[i]) || ((periodPos + i) >= to))
break;
}
- else if (!isspace(buf[i]) || (periodPos + i) >= to)
+ else if (!isspace((unsigned char)buf[i]) || (periodPos + i) >= to)
break;
XtFree(buf);
@@ -3681,7 +3681,7 @@ InsertNewCRs(TextWidget ctx, XawTextPosition from, XawTextPosition to,
if (!iswspace(((wchar_t*)buf)[i]))
break;
}
- else if (!isspace(buf[i]))
+ else if (!isspace((unsigned char)buf[i]))
break;
to -= (i - 1);