misparsing 9grid.net

This commit is contained in:
Russ Cox 2006-04-06 15:54:12 +00:00
parent 50200c1893
commit 17efd16d0f
1 changed files with 3 additions and 1 deletions

View File

@ -688,9 +688,11 @@ parseip(char *to, char *from)
p = from;
memset(to, 0, 4);
for(i = 0; i < 4 && *p; i++){
to[i] = strtoul(p, &p, 0);
to[i] = strtoul(p, &p, 10);
if(*p == '.')
p++;
if(*p != '.' && *p != 0)
return 0;
}
switch(CLASS(to)){
case 0: /* class A - 1 byte net */