Testing fix for address parsing

This commit is contained in:
Andrew Pamment 2016-03-25 08:27:06 +10:00
parent bd7486f1ab
commit a8e28ee751

8
bbs.c
View File

@ -54,16 +54,16 @@ struct fido_addr *parse_fido_addr(const char *str) {
{ {
switch (state) { switch (state) {
case 0: case 0:
ret->zone *= 10 + (str[c] - '0'); ret->zone = ret->zone * 10 + (str[c] - '0');
break; break;
case 1: case 1:
ret->net *= 10 + (str[c] - '0'); ret->net = ret->net * 10 + (str[c] - '0');
break; break;
case 2: case 2:
ret->node *= 10 + (str[c] - '0'); ret->node = ret->node * 10 + (str[c] - '0');
break; break;
case 3: case 3:
ret->point *= 10 + (str[c] - '0'); ret->point = ret->point * 10 + (str[c] - '0');
break; break;
} }
} }