fix version parsing to not sometimes use octal :)
authorDan Winship <danw@gnome.org>
Fri Mar 07 08:24:09 2008 -0500 (2008-03-07)
changeset 1535fe2db6c98db
parent 152 1a19aec546fb
child 154 229fb0caa092
fix version parsing to not sometimes use octal :)
razor.c
     1.1 --- a/razor.c	Thu Mar 06 01:41:50 2008 -0500
     1.2 +++ b/razor.c	Fri Mar 07 08:24:09 2008 -0500
     1.3 @@ -448,8 +448,8 @@
     1.4  	long n1, n2;
     1.5  	int res;
     1.6  
     1.7 -	n1 = strtol(s1, (char **) &p1, 0);
     1.8 -	n2 = strtol(s2, (char **) &p2, 0);
     1.9 +	n1 = strtol(s1, (char **) &p1, 10);
    1.10 +	n2 = strtol(s2, (char **) &p2, 10);
    1.11  
    1.12  	/* Epoch; if one but not the other has an epoch set, default
    1.13  	 * the epoch-less version to 0. */
    1.14 @@ -2021,7 +2021,7 @@
    1.15  			prop--;
    1.16  	}
    1.17  
    1.18 -	/* Scan matching proeprties */
    1.19 +	/* Scan matching properties */
    1.20  	while (prop < prop_end && prop->type == match_type &&
    1.21  	       strcmp(&pool[prop->name], &rpool[req->name]) == 0) {
    1.22  		if (match_type == RAZOR_PROPERTY_PROVIDES)