HomeFreeBSD

- Fix some broken logic committed in r295191. I should have used MIN, not MAX,

Description

  • Fix some broken logic committed in r295191. I should have used MIN, not MAX, when capping the buffer length with strlcpy in snmp_oid2asn_oid(..) [*].
  • Make i in to size_t to get the types of i and sizeof in sync and fix a -Wsign-compare warning.

Reported by: bde [*]

Details

Provenance
ngieAuthored on
Parents
rS295241: - Mark parameters to snmp_inetaddr2oct(..) and parse_inetaddr(..) unused to fix
Branches
Unknown
Tags
Unknown