diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-02-13 20:39:59 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-02-13 20:39:59 +0000 |
commit | 64ca36ac46122e73db966f766d218805be3c765c (patch) | |
tree | 1b652f910000ce27a4c488d274226509ef2d7bdb /bin/sleep | |
parent | 4db3050ddda9341017563edc64df1f02395de4b6 (diff) |
argv space does not need to be trashed during parsing
Diffstat (limited to 'bin/sleep')
-rw-r--r-- | bin/sleep/sleep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/sleep/sleep.c b/bin/sleep/sleep.c index c35df946d7e..c1c4a2bd764 100644 --- a/bin/sleep/sleep.c +++ b/bin/sleep/sleep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sleep.c,v 1.17 2004/09/16 08:35:49 deraadt Exp $ */ +/* $OpenBSD: sleep.c,v 1.18 2009/02/13 20:39:58 deraadt Exp $ */ /* $NetBSD: sleep.c,v 1.8 1995/03/21 09:11:11 cgd Exp $ */ /* @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)sleep.c 8.3 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: sleep.c,v 1.17 2004/09/16 08:35:49 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: sleep.c,v 1.18 2009/02/13 20:39:58 deraadt Exp $"; #endif #endif /* not lint */ @@ -95,7 +95,7 @@ main(int argc, char *argv[]) /* Handle fractions of a second */ if (*cp == '.') { - *cp++ = '\0'; + cp++; for (i = 100000000; i > 0; i /= 10) { if (*cp == '\0') break; |