mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-06-10 00:58:31 +02:00
tools/ptraccel-debug: replace atoi() with safe_atoi()
It's a niche development/debugging tool, argument parsing issues aren't really something we need to care about but hey, this change is easy. Co-Authored-by: Claude Code <noreply@anthropic.com> Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1467>
This commit is contained in:
parent
20b52ffafc
commit
f899da7552
1 changed files with 1 additions and 2 deletions
|
|
@ -297,8 +297,7 @@ main(int argc, char **argv)
|
|||
}
|
||||
break;
|
||||
case OPT_NEVENTS:
|
||||
nevents = atoi(optarg);
|
||||
if (nevents == 0) {
|
||||
if (!safe_atoi(optarg, &nevents) || nevents <= 0) {
|
||||
usage();
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue