$ sleep 123.456 & ps | grep sleep [1] 17045 17045 p5 S 0:00.00 sleep 123 $
Index: sleep.c
===================================================================
RCS file: /cvs/src/bin/sleep/sleep.c,v
retrieving revision 1.17
diff -u -r1.17 sleep.c
--- sleep.c 16 Sep 2004 08:35:49 -0000 1.17
+++ sleep.c 13 Feb 2009 19:52:10 -0000
@@ -95,7 +95,7 @@
/* Handle fractions of a second */
if (*cp == '.') {
- *cp++ = '\0';
+ cp++;
for (i = 100000000; i > 0; i /= 10) {
if (*cp == '\0')
break;

