From a8e28ee7517698bb9fdb6ef33d105c50299dceef Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Fri, 25 Mar 2016 08:27:06 +1000 Subject: [PATCH] Testing fix for address parsing --- bbs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bbs.c b/bbs.c index 356b6e4..a0d404c 100644 --- a/bbs.c +++ b/bbs.c @@ -54,16 +54,16 @@ struct fido_addr *parse_fido_addr(const char *str) { { switch (state) { case 0: - ret->zone *= 10 + (str[c] - '0'); + ret->zone = ret->zone * 10 + (str[c] - '0'); break; case 1: - ret->net *= 10 + (str[c] - '0'); + ret->net = ret->net * 10 + (str[c] - '0'); break; case 2: - ret->node *= 10 + (str[c] - '0'); + ret->node = ret->node * 10 + (str[c] - '0'); break; case 3: - ret->point *= 10 + (str[c] - '0'); + ret->point = ret->point * 10 + (str[c] - '0'); break; } }