Commit graph

6 commits

Author SHA1 Message Date
918d43e4e9 Small tweak 2023-08-25 18:58:59 -03:00
8d71ef6bd4 Avoid buffer overflow 2023-08-25 18:37:53 -03:00
d170a1c1ca Small tweak 2023-08-25 18:28:14 -03:00
24c3bfb681 Handle 'str' being NULL 2023-08-25 18:26:21 -03:00
59108cc615 Improve portability / performance
* `strtonum` is unique to OpenBSD - use `strtol` instead.
* Call `strnlen` once.
* Avoid int cast.
2023-08-25 17:14:33 -03:00
7c02f425c5 First commit 2023-08-25 15:57:09 -03:00