- ipv4addrs should search for decimals not spaces when calling strtok. See bug 3962 for more info.

svn path=/trunk/; revision=38346
This commit is contained in:
Michael Martin 2008-12-25 12:43:32 +00:00
parent 82cffd5af5
commit 10d052aa36

View file

@ -2056,7 +2056,7 @@ ipv4addrs(char * buf)
note("Input: %s", buf); note("Input: %s", buf);
do { do {
tmp = strtok(buf, " "); tmp = strtok(buf, ".");
note("got %s", tmp); note("got %s", tmp);
if( tmp && inet_aton(tmp, &jnk) ) i++; if( tmp && inet_aton(tmp, &jnk) ) i++;
buf = NULL; buf = NULL;