From 67d5e1e4ca79d86c8beedc8709efb27f83295443 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 19 Jun 2004 01:44:56 +0000 Subject: Cast arguments of is*() ctype.h functions to unsigned char to be 8-bit safe. svn path=/trunk/; revision=3903 --- sink.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sink.c') diff --git a/sink.c b/sink.c index cf79a0f7..c8c8fd9f 100644 --- a/sink.c +++ b/sink.c @@ -402,9 +402,9 @@ static int send_bouncemail(struct query *ctl, struct msgblk *msg, /* errors correspond 1-1 to selected users */ error = errors[nusers++]; - if (strlen(error) > 9 && isdigit(error[4]) - && error[5] == '.' && isdigit(error[6]) - && error[7] == '.' && isdigit(error[8])) + if (strlen(error) > 9 && isdigit((unsigned char)error[4]) + && error[5] == '.' && isdigit((unsigned char)error[6]) + && error[7] == '.' && isdigit((unsigned char)error[8])) /* Enhanced status code available, use it */ SockPrintf(sock, "Status: %5.5s\r\n", &(error[4])); else @@ -781,7 +781,7 @@ static const char *is_quad(const char *q) return NULL; if (*q == '.') q++; - for(r=q;isdigit(*r);r++) + for(r=q;isdigit((unsigned char)*r);r++) ; if ( ((*r) && (*r != '.')) || ((r-q) < 1) || ((r-q)>3) ) return NULL; -- cgit v1.2.3