diff options
author | Usman Akinyemi <usmanakinyemi202@gmail.com> | 2024-10-24 00:24:56 +0000 |
---|---|---|
committer | Taylor Blau <me@ttaylorr.com> | 2024-10-24 14:03:43 -0400 |
commit | cc4023477f3c958b77c64b7f36f91b4f9d7c5a58 (patch) | |
tree | bd61c6cec5ebe9ca7d6133b5771e69877e03dfd9 /git-gui/lib/commit.tcl | |
parent | 34b6ce9b30747131b6e781ff718a45328aa887d0 (diff) |
daemon: replace atoi() with strtoul_ui() and strtol_i()
Replace atoi() with strtoul_ui() for --timeout and --init-timeout
(non-negative integers) and with strtol_i() for --max-connections
(signed integers). This improves error handling and input validation
by detecting invalid values and providing clear error messages.
Update tests to ensure these arguments are properly validated.
Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'git-gui/lib/commit.tcl')
0 files changed, 0 insertions, 0 deletions