Replace a mess of snprintf() dances with easier to read code using
authorkrw <krw@openbsd.org>
Sat, 8 Apr 2017 17:00:10 +0000 (17:00 +0000)
committerkrw <krw@openbsd.org>
Sat, 8 Apr 2017 17:00:10 +0000 (17:00 +0000)
commitbee06f071f1656e71fc27705da76f5acf13afb2b
treef89107357c72f16722cae59872e34b4cf3162887
parentebb46d9c2c2e831ed5f1c9361c489256fc654c02
Replace a mess of snprintf() dances with easier to read code using
strlcat(). Shorter, clearer, fewer signed vs unsigned questions.

Shrink static buffer for the string version of an option value from
32K to 8K. Since the string version of the entire lease is constructed
in a 8K buffer, bigger option values are pointless.

Use 8K of the saved space for a static buffer for pretty_print_string()
and use it rather scribbling intermediate values into the final
destination.

No intentional functional change.
sbin/dhclient/dhclient.c
sbin/dhclient/dhcpd.h
sbin/dhclient/options.c