From ddf070e204dfc4a11fe7f541317023360a45ad9c Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Mon, 2 Jan 2006 05:11:31 +0000 Subject: bugfix: we were failing to parse a tor version that started with "Tor ", even though we said we could. svn:r5699 --- src/or/routerparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 6512dec2e9..01b2396888 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -1740,7 +1740,7 @@ tor_version_parse(const char *s, tor_version_t *out) memset(out, 0, sizeof(tor_version_t)); if (!strcasecmpstart(s, "Tor ")) - cp += 4; + s += 4; /* Get major. */ out->major = strtol(s,&eos,10); -- cgit v1.2.3-54-g00ecf