diff --git a/sys/src/cmd/crop.c b/sys/src/cmd/crop.c index c1130b957..c1234e26d 100644 --- a/sys/src/cmd/crop.c +++ b/sys/src/cmd/crop.c @@ -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