bugfix: we were failing to parse a tor version that started with

"Tor ", even though we said we could.


svn:r5699
This commit is contained in:
Roger Dingledine 2006-01-02 05:11:31 +00:00
parent ea6ea8ec22
commit ddf070e204

View File

@ -1740,7 +1740,7 @@ tor_version_parse(const char *s, tor_version_t *out)
memset(out, 0, sizeof(tor_version_t)); memset(out, 0, sizeof(tor_version_t));
if (!strcasecmpstart(s, "Tor ")) if (!strcasecmpstart(s, "Tor "))
cp += 4; s += 4;
/* Get major. */ /* Get major. */
out->major = strtol(s,&eos,10); out->major = strtol(s,&eos,10);