Testing fix for address parsing
This commit is contained in:
parent
bd7486f1ab
commit
a8e28ee751
8
bbs.c
8
bbs.c
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user