From: Dan Winship Date: Fri, 7 Mar 2008 13:24:09 +0000 (-0500) Subject: fix version parsing to not sometimes use octal :) X-Git-Tag: 0.1~208 X-Git-Url: http://project.juiblex.co.uk/git/?a=commitdiff_plain;h=c59701d2259bb55d846416ca67f1700c7d8bd00a;p=razor2.git%2F.git fix version parsing to not sometimes use octal :) --- diff --git a/razor.c b/razor.c index 22c1dfb..e26c5d0 100644 --- a/razor.c +++ b/razor.c @@ -448,8 +448,8 @@ versioncmp(const char *s1, const char *s2) 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 @@ find_package_matching(struct razor_transaction_resolver *trans, int installed, 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)