crop: use strtol() instead of atoi()

front
cinap_lenrek 2015-08-03 17:29:30 +02:00
parent 953387d7ba
commit 2513946536
1 changed files with 1 additions and 5 deletions

View File

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