git: 9front

Download patch

ref: 6681b1d6f658626fe560b8b26d608c8fc5075830
parent: 6094293748c465e3d48c99768ddd58f760b735ec
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Aug 3 13:29:30 EDT 2015

crop: use strtol() instead of atoi()

--- a/sys/src/cmd/crop.c
+++ b/sys/src/cmd/crop.c
@@ -27,11 +27,7 @@
 {
 	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
--