2008/10/14 Bernhard Reutner-Fischer <[EMAIL PROTECTED]>:
> Hi,
>
> Fancy sleep does not accept fractions like ".15", only "0.15".
Consider the attached patch. I wonder why the first test is needed,
though.
> Is there something wrong with e.g. strtof that we did a bb_strtod?
FANCY sleep does not need bb_strtod and could call the regular
strtod.
Loïc
Index: libbb/bb_strtod.c
===================================================================
--- libbb/bb_strtod.c (révision 23625)
+++ libbb/bb_strtod.c (copie de travail)
@@ -17,7 +17,7 @@
double v;
char *endptr;
- if (arg[0] != '-' && NOT_DIGIT(arg[0]))
+ if (arg[0] != '-' && arg[0] != '.' && NOT_DIGIT(arg[0]))
goto err;
errno = 0;
v = strtod(arg, &endptr);
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox