From a51398cb8dbcccefbb0aa01aa883c73c41fba2d7 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 17 Apr 2026 14:17:35 +1000 Subject: [PATCH] tools: use save_atod instead of atof() Co-Authored-By: Claude Opus 4.6 Part-of: --- tools/shared.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/shared.c b/tools/shared.c index a359dcdd..db1d83a9 100644 --- a/tools/shared.c +++ b/tools/shared.c @@ -297,7 +297,8 @@ tools_parse_option(int option, const char *optarg, struct tools_options *options case OPT_SPEED: if (!optarg) return 1; - options->speed = atof(optarg); + if (!safe_atod(optarg, &options->speed)) + return 1; break; case OPT_PROFILE: if (!optarg)