diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-18 19:08:04 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-18 19:08:04 +0200 |
commit | e6bcf116537883ea856b6032f1375e94483963f7 (patch) | |
tree | 6391a2992c4da16cb6651c6a3972917cd3a29e6a /plugins/check_snmp.c | |
parent | 37cf5e3cd578851fe0bee6b1332f2e8688af64ab (diff) | |
download | monitoring-plugins-e6bcf116537883ea856b6032f1375e94483963f7.tar.gz |
check_snmp: Allocate space for the new -Le option
Closes #41.
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r-- | plugins/check_snmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index b79c0200..3e8a9cf1 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
@@ -274,8 +274,8 @@ main (int argc, char **argv) | |||
274 | snmpcmd = strdup (PATH_TO_SNMPGET); | 274 | snmpcmd = strdup (PATH_TO_SNMPGET); |
275 | } | 275 | } |
276 | 276 | ||
277 | /* 9 arguments to pass before authpriv options + 1 for host and numoids. Add one for terminating NULL */ | 277 | /* 10 arguments to pass before authpriv options + 1 for host and numoids. Add one for terminating NULL */ |
278 | command_line = calloc (9 + numauthpriv + 1 + numoids + 1, sizeof (char *)); | 278 | command_line = calloc (10 + numauthpriv + 1 + numoids + 1, sizeof (char *)); |
279 | command_line[0] = snmpcmd; | 279 | command_line[0] = snmpcmd; |
280 | command_line[1] = strdup ("-Le"); | 280 | command_line[1] = strdup ("-Le"); |
281 | command_line[2] = strdup ("-t"); | 281 | command_line[2] = strdup ("-t"); |