crop: use strtol() instead of atoi()

This commit is contained in:
cinap_lenrek 2015-08-03 17:29:30 +02:00
parent 953387d7ba
commit 2513946536

View file

@ -27,11 +27,7 @@ getint(char *s)
{
if(s == nil)
usage();
if(*s == '+')
return atoi(s+1);
if(*s == '-')
return -atoi(s+1);
return atoi(s);
return strtol(s, 0, 0);
}
Rectangle