diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-03 17:29:30 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-08-03 17:29:30 +0200 |
commit | 25139465363b2230b69789013e3e0b5f82d76564 (patch) | |
tree | c29f612d90b187344c8cd089965a8f62287456d1 /sys/src/cmd/crop.c | |
parent | 953387d7ba137ebd25a120e2ce2fd1a61f2d455d (diff) |
crop: use strtol() instead of atoi()
Diffstat (limited to 'sys/src/cmd/crop.c')
-rw-r--r-- | sys/src/cmd/crop.c | 6 |
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 |