From d35f99c8a9f546a0f02f09ad3f722f66322e813d Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Fri, 22 Aug 2003 04:43:11 +0000 Subject: * bugfix: snprintf of timestamp truncated '\0' git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@689 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/check_http.c') diff --git a/plugins/check_http.c b/plugins/check_http.c index b9032d16..2908c007 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c @@ -992,7 +992,7 @@ check_certificate (X509 ** certificate) days_left = (mktime (&stamp) - time (NULL)) / 86400; snprintf - (timestamp, 16, "%02d/%02d/%04d %02d:%02d", + (timestamp, 17, "%02d/%02d/%04d %02d:%02d", stamp.tm_mon + 1, stamp.tm_mday, stamp.tm_year + 1900, stamp.tm_hour, stamp.tm_min); -- cgit v1.2.3