diff options
Diffstat (limited to 'init/halt.c')
-rw-r--r-- | init/halt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/halt.c b/init/halt.c index 2ac210e59..9e3cbb1cf 100644 --- a/init/halt.c +++ b/init/halt.c @@ -35,7 +35,7 @@ RB_AUTOBOOT /* Parse and handle arguments */ flags = getopt32(argc, argv, "d:nf", &delay); - if (flags&1) sleep(atoi(delay)); + if (flags&1) sleep(xatou(delay)); if (!(flags&2)) sync(); /* Perform action. */ |