From: deraadt Date: Wed, 8 Jan 2014 15:30:49 +0000 (+0000) Subject: ctype cleanup; ok gilles X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b70263c5515f589a0136ca8aac86e2fab2c40403;p=openbsd ctype cleanup; ok gilles --- diff --git a/usr.sbin/smtpd/util.c b/usr.sbin/smtpd/util.c index d437e58dc25..c9c9103eff1 100644 --- a/usr.sbin/smtpd/util.c +++ b/usr.sbin/smtpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.104 2013/12/26 17:25:32 eric Exp $ */ +/* $OpenBSD: util.c,v 1.105 2014/01/08 15:30:49 deraadt Exp $ */ /* * Copyright (c) 2000,2001 Markus Friedl. All rights reserved. @@ -733,8 +733,8 @@ parse_smtp_response(char *line, size_t len, char **msg, int *cont) return "line too short"; /* validate reply code */ - if (line[0] < '2' || line[0] > '5' || !isdigit(line[1]) || - !isdigit(line[2])) + if (line[0] < '2' || line[0] > '5' || !isdigit((unsigned char)line[1]) || + !isdigit((unsigned char)line[2])) return "reply code out of range"; /* validate reply message */