-/* $Id: mmpop3d.c,v 1.40.2.3 2005/11/24 09:01:36 mmondor Exp $ */
+/* $Id: mmpop3d.c,v 1.40.2.4 2006/04/24 21:26:38 mmondor Exp $ */
/*
* Copyright (C) 2001-2004, Matthew Mondor
MMCOPYRIGHT("@(#) Copyright (c) 2001-2004\n\
\tMatthew Mondor. All rights reserved.\n");
-MMRCSID("$Id: mmpop3d.c,v 1.40.2.3 2005/11/24 09:01:36 mmondor Exp $");
+MMRCSID("$Id: mmpop3d.c,v 1.40.2.4 2006/04/24 21:26:38 mmondor Exp $");
*/
ptr = host;
while (*ptr != '\0') {
- if (!isalnum(*ptr) || *ptr == ' ')
+ if (!isalnum((int)*ptr) || *ptr == ' ')
return (FALSE);
else {
/* Find next host part */
inline static bool
valid_char(char c)
{
- return (isalnum(c) || c == '.' || c == '-' || c == '_');
+ return (isalnum((int)c) || c == '.' || c == '-' || c == '_');
}