summaryrefslogtreecommitdiff
path: root/networking/brctl.c
diff options
context:
space:
mode:
authorDenys Vlasenko2021-03-23 13:50:02 +0100
committerDenys Vlasenko2021-03-23 13:50:02 +0100
commitc2bd0b680667c7ec4956552f75d9ff7d040ac941 (patch)
tree8d117fedfebe03f6f97071ebc522d4ac03f08c47 /networking/brctl.c
parent14ed4ec8a416a60a214bf40f9185aa227ac44598 (diff)
downloadbusybox-c2bd0b680667c7ec4956552f75d9ff7d040ac941.zip
busybox-c2bd0b680667c7ec4956552f75d9ff7d040ac941.tar.gz
timeout,top,watch,ping: parse NN.N fractional duration in locales with other separators
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/brctl.c')
-rw-r--r--networking/brctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/brctl.c b/networking/brctl.c
index e1f3e64..c83aac6 100644
--- a/networking/brctl.c
+++ b/networking/brctl.c
@@ -89,6 +89,7 @@ static unsigned str_to_jiffies(const char *time_str)
{
double dd;
char *endptr;
+//TODO: needs setlocale(LC_NUMERIC, "C")?
dd = /*bb_*/strtod(time_str, &endptr);
if (endptr == time_str || dd < 0)
bb_error_msg_and_die(bb_msg_invalid_arg_to, time_str, "timespec");