Use strtonum() instead of severely non-idomatic strtoul()
authorderaadt <deraadt@openbsd.org>
Tue, 2 Apr 2024 09:29:31 +0000 (09:29 +0000)
committerderaadt <deraadt@openbsd.org>
Tue, 2 Apr 2024 09:29:31 +0000 (09:29 +0000)
commitdc987674d7aa8686a49eb9333484c20604c4cb17
tree7425b9c27d064955df7813422691050e1c936237
parent107a2d5f351e2ec5f3d097f2a644a0d2f0823c70
Use strtonum() instead of severely non-idomatic strtoul()
In particular this will now reject trailing garbage, ie. '12garbage'.
ok djm
usr.bin/ssh/addr.c