commit 48cc842aa905ebc8694c53940a2facb30ec23d67
Author: sin <[email protected]>
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
@@ -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;

Reply via email to