[hackers] [sbase] Use estrtonum in sleep(1) || sin
commit f3d26a2807a7c1c5ac67673e791349721031a92d
Author: sin <sin_AT_2f30.org>
Date: Fri Jan 30 14:01:45 2015 +0000
Use estrtonum in sleep(1)
diff --git a/sleep.c b/sleep.c
index 5c2d2f4..c5e9e49 100644
--- a/sleep.c
+++ b/sleep.c
_AT_@ -23,7 +23,7 @@ main(int argc, char *argv[])
if (argc < 1)
usage();
- seconds = estrtoul(argv[0], 0);
+ seconds = estrtonum(argv[0], 0, UINT_MAX);
while ((seconds = sleep(seconds)) > 0)
;
return 0;
Received on Fri Jan 30 2015 - 15:07:39 CET
This archive was generated by hypermail 2.3.0
: Fri Jan 30 2015 - 15:12:10 CET