From 25139465363b2230b69789013e3e0b5f82d76564 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 3 Aug 2015 17:29:30 +0200 Subject: [PATCH] crop: use strtol() instead of atoi() --- sys/src/cmd/crop.c | 6 +----- 1 file changed, 1 insertion(+), 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