summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/crop.c6
1 files changed, 1 insertions, 5 deletions
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