aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2004-06-19 01:44:56 +0000
committerMatthias Andree <matthias.andree@gmx.de>2004-06-19 01:44:56 +0000
commit67d5e1e4ca79d86c8beedc8709efb27f83295443 (patch)
treeb8692dc1d527a427787e86e6e1f02f14a5203630 /sink.c
parentad03539e8bf64c9e3393f357857c5c751d682abc (diff)
downloadfetchmail-67d5e1e4ca79d86c8beedc8709efb27f83295443.tar.gz
fetchmail-67d5e1e4ca79d86c8beedc8709efb27f83295443.tar.bz2
fetchmail-67d5e1e4ca79d86c8beedc8709efb27f83295443.zip
Cast arguments of is*() ctype.h functions to unsigned char to be 8-bit safe.
svn path=/trunk/; revision=3903
Diffstat (limited to 'sink.c')
-rw-r--r--sink.c8
1 files changed, 4 insertions, 4 deletions
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;