ossp-pkg/lmtp2nntp/lmtp.c 1.19 -> 1.20
--- lmtp.c 2001/08/30 13:38:04 1.19
+++ lmtp.c 2001/08/30 13:57:21 1.20
@@ -320,18 +320,18 @@
char formatbuf[LMTP_LINE_MAXLEN];
if ( strlen(res->statuscode) != 3
- || !isdigit(res->statuscode[0])
- || !isdigit(res->statuscode[1])
- || !isdigit(res->statuscode[2]))
+ || !isdigit((int)res->statuscode[0])
+ || !isdigit((int)res->statuscode[1])
+ || !isdigit((int)res->statuscode[2]))
return LMTP_ERR_ARG;
if (res->dsncode != NULL) {
if ( (strlen(res->dsncode) != 5)
- || !isdigit(res->dsncode[0])
+ || !isdigit((int)res->dsncode[0])
|| (res->dsncode[1] != '.')
- || !isdigit(res->dsncode[2])
+ || !isdigit((int)res->dsncode[2])
|| (res->dsncode[3] != '.')
- || !isdigit(res->dsncode[4])
+ || !isdigit((int)res->dsncode[4])
|| (res->dsncode[0] != res->statuscode[0]))
return LMTP_ERR_ARG;
}
|
|