| author | Florian Forster <octo@noris.net> | |
| Mon, 22 Sep 2008 11:57:29 +0000 (13:57 +0200) | ||
| committer | Florian Forster <octo@noris.net> | |
| Mon, 22 Sep 2008 11:57:29 +0000 (13:57 +0200) | ||
| commit | 8faf4450ab7019e8931eca3343d43c79c37701d3 | |
| tree | 3274ac71ed9593944294a951c258372ec6505d1c | tree | snapshot |
| parent | df2ae7af20a12f55f7a80f5830c98f5741ec585c | commit | diff |
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.
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 | diff | blob | history |