mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-06-10 05:38:23 +02:00
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:
parent
74b4ca132f
commit
a51398cb8d
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue