From 593c4e2a0e9426ad88d5aa17a7a884d62e767c81 Mon Sep 17 00:00:00 2001
From: Subhendu Ghosh <sghosh@users.sourceforge.net>
Date: Mon, 24 Jun 2002 20:41:25 +0000
Subject: 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

diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 8e977e8..bfc49aa 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -221,7 +221,7 @@ main (int argc, char **argv)
 			p2 = strpbrk (p2, "0123456789");
 			response_value[i] = strtoul (p2, NULL, 10);
 			iresult = check_num (i);
-			show = ssprintf (show, "%d", response_value[i]);
+			show = ssprintf (show, "%lu", response_value[i]);
 		}
 
 		else if (eval_method[i] & CRIT_STRING) {
-- 
cgit v0.10-9-g596f

