tools: use save_atod instead of atof()

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1467>
This commit is contained in:
Peter Hutterer 2026-04-17 14:17:35 +10:00 committed by Marge Bot
parent 74b4ca132f
commit a51398cb8d

View file

@ -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)