From: simon Date: Mon, 25 Oct 1999 14:27:13 +0000 (+0000) Subject: Fix versioncmp X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/43aa02a74616bd24433acdc8c316aa5f0e0b76ce Fix versioncmp git-svn-id: svn://svn.tartarus.org/sgt/putty@255 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/ssh.c b/ssh.c index edac1822..4100cc9a 100644 --- a/ssh.c +++ b/ssh.c @@ -217,13 +217,13 @@ static int ssh_versioncmp(char *a, char *b) { char *ae, *be; unsigned long av, bv; - av = strtoul(a, &ae); - bv = strtoul(b, &be); + av = strtoul(a, &ae, 10); + bv = strtoul(b, &be, 10); if (av != bv) return (av < bv ? -1 : +1); if (*ae == '.') ae++; if (*be == '.') be++; - av = strtoul(ae, &ae); - bv = strtoul(be, &be); + av = strtoul(ae, &ae, 10); + bv = strtoul(be, &be, 10); if (av != bv) return (av < bv ? -1 : +1); return 0; }