[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] backport the tor_version_parse() bugfix.
Update of /home/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/tor-010x/tor/src/or
Modified Files:
Tag: tor-0_1_0-patches
routerparse.c
Log Message:
backport the tor_version_parse() bugfix.
Index: routerparse.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/routerparse.c,v
retrieving revision 1.110.2.1
retrieving revision 1.110.2.2
diff -u -p -d -r1.110.2.1 -r1.110.2.2
--- routerparse.c 11 Sep 2005 22:37:20 -0000 1.110.2.1
+++ routerparse.c 2 Jan 2006 05:12:27 -0000 1.110.2.2
@@ -1531,7 +1531,7 @@ int tor_version_parse(const char *s, tor
memset(out, 0, sizeof(tor_version_t));
if (!strcasecmpstart(s, "Tor "))
- cp += 4;
+ s += 4;
/* Get major. */
out->major = strtol(s,&eos,10);