inet.c: patch #6765: Fix a small problem with the last changes (incorrect behavior, with ip address string not ended by a '\0', a space or a end of line)

This commit is contained in:
fbernon
2009-04-24 12:14:54 +00:00
parent c3f7107e2b
commit 4eda29abf9
2 changed files with 6 additions and 1 deletions

View File

@@ -134,7 +134,7 @@ inet_aton(const char *cp, struct in_addr *addr)
/*
* Check for trailing characters.
*/
if (c != '\0' && !isprint(c) && !isspace(c))
if (c != '\0' && !isspace(c))
return (0);
/*
* Concoct the address according to