snmp plugin: Improve parsing of strings to values.
authorFlorian Forster <octo@noris.net>
Mon, 22 Sep 2008 11:57:29 +0000 (13:57 +0200)
committerFlorian Forster <octo@noris.net>
Mon, 22 Sep 2008 11:57:29 +0000 (13:57 +0200)
commit8faf4450ab7019e8931eca3343d43c79c37701d3
tree3274ac71ed9593944294a951c258372ec6505d1c
parentdf2ae7af20a12f55f7a80f5830c98f5741ec585c
snmp plugin: Improve parsing of strings to values.

The ``strings'' returned by the Net-SNMP library may not be null
terminated. What the fuck were those guys thinking? At least there's a
`val_len' member in `struct variable_list' we can use to determine the
amount of bytes we need to copy.
src/snmp.c