From adecd52b3a85a7a5964723a62e83a33dad02e849 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sat, 13 Jul 2024 08:17:18 +0200 Subject: [PATCH] [inpfield] Cast to unsigned char * . Refs #315 --- src/bfu/inpfield.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bfu/inpfield.c b/src/bfu/inpfield.c index 2d6ba4ca2..f473ff2b3 100644 --- a/src/bfu/inpfield.c +++ b/src/bfu/inpfield.c @@ -89,9 +89,9 @@ check_number(struct dialog_data *dlg_data, struct widget_data *widget_data) widget_handler_status_T check_nonempty(struct dialog_data *dlg_data, struct widget_data *widget_data) { - char *p; + unsigned char *p; - for (p = widget_data->cdata; *p; p++) + for (p = (unsigned char *)widget_data->cdata; *p; p++) if (*p > ' ') return EVENT_PROCESSED;