# HG changeset patch # User Dan Winship # Date 1204896249 18000 # Node ID 5fe2db6c98dbfc0133d48c4fdd8a5d45660320db # Parent 1a19aec546fbc329dac5bdc6d4718db644e42684 fix version parsing to not sometimes use octal :) diff -r 1a19aec546fb -r 5fe2db6c98db razor.c --- a/razor.c Thu Mar 06 01:41:50 2008 -0500 +++ b/razor.c Fri Mar 07 08:24:09 2008 -0500 @@ -448,8 +448,8 @@ long n1, n2; int res; - n1 = strtol(s1, (char **) &p1, 0); - n2 = strtol(s2, (char **) &p2, 0); + n1 = strtol(s1, (char **) &p1, 10); + n2 = strtol(s2, (char **) &p2, 10); /* Epoch; if one but not the other has an epoch set, default * the epoch-less version to 0. */ @@ -2021,7 +2021,7 @@ prop--; } - /* Scan matching proeprties */ + /* Scan matching properties */ while (prop < prop_end && prop->type == match_type && strcmp(&pool[prop->name], &rpool[req->name]) == 0) { if (match_type == RAZOR_PROPERTY_PROVIDES)