diff options
author | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-06-24 20:41:25 +0000 |
---|---|---|
committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-06-24 20:41:25 +0000 |
commit | 593c4e2a0e9426ad88d5aa17a7a884d62e767c81 (patch) | |
tree | 0afdc20ee8a0c509e1e98cd9f386891004bc8b87 | |
parent | bdb73692bf23ee653a686c60d98454316cede390 (diff) | |
download | monitoring-plugins-593c4e2a0e9426ad88d5aa17a7a884d62e767c81.tar.gz |
printf bug for large numbers - Jeff Murray
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@57 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | plugins/check_snmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index 8e977e82..bfc49aa8 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
@@ -221,7 +221,7 @@ main (int argc, char **argv) | |||
221 | p2 = strpbrk (p2, "0123456789"); | 221 | p2 = strpbrk (p2, "0123456789"); |
222 | response_value[i] = strtoul (p2, NULL, 10); | 222 | response_value[i] = strtoul (p2, NULL, 10); |
223 | iresult = check_num (i); | 223 | iresult = check_num (i); |
224 | show = ssprintf (show, "%d", response_value[i]); | 224 | show = ssprintf (show, "%lu", response_value[i]); |
225 | } | 225 | } |
226 | 226 | ||
227 | else if (eval_method[i] & CRIT_STRING) { | 227 | else if (eval_method[i] & CRIT_STRING) { |