"Theo de Raadt" <dera...@openbsd.org> writes: > Noone uses telnet, we (mostly) killed it! > > https://www.openbsd.org/images/tshirt-9b.jpg > > There is no way in heck this code is going to be converted in OpenBSD > to use strtol(), which is even more willing to eat junk.
I don't disagree. Especially on the strtol part. > In our world, someone should adapt this to strtonum(), which is > a cynical string to integer API with range-control built in. Interesting, good to know. Anyways my patch is here to draw inspiration from if anyone decides they care about telnet. :) Collin