Rewrite tohexstr() to use the common idiom of converting a byte
authormillert <millert@openbsd.org>
Tue, 4 Apr 2017 02:37:15 +0000 (02:37 +0000)
committermillert <millert@openbsd.org>
Tue, 4 Apr 2017 02:37:15 +0000 (02:37 +0000)
commit3ece458fe698324d1dbaf76e5c8b68d39e8ad466
tree0bc2ec30eaa663eab7e650050b2be8ce82f85c06
parent66a1e9038f54ba69b7536be996a43b7585e0eb17
Rewrite tohexstr() to use the common idiom of converting a byte
string to hex nybble by nybble.  This avoids using the return value
of snprintf() unchecked.  OK deraadt@
usr.sbin/snmpd/snmpd.c