summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-08-22 04:43:11 +0000
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-08-22 04:43:11 +0000
commitd35f99c8a9f546a0f02f09ad3f722f66322e813d (patch)
tree1e04091bf6c393de3292ae718cc064597ec059ae /plugins
parenteebd23246139f42f464ca3aea8d3b256fa0e9ada (diff)
downloadmonitoring-plugins-d35f99c8a9f546a0f02f09ad3f722f66322e813d.tar.gz
* bugfix: snprintf of timestamp truncated '\0'
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@689 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_http.c2
1 files changed, 1 insertions, 1 deletions
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)
992 992
993 days_left = (mktime (&stamp) - time (NULL)) / 86400; 993 days_left = (mktime (&stamp) - time (NULL)) / 86400;
994 snprintf 994 snprintf
995 (timestamp, 16, "%02d/%02d/%04d %02d:%02d", 995 (timestamp, 17, "%02d/%02d/%04d %02d:%02d",
996 stamp.tm_mon + 1, 996 stamp.tm_mon + 1,
997 stamp.tm_mday, stamp.tm_year + 1900, stamp.tm_hour, stamp.tm_min); 997 stamp.tm_mday, stamp.tm_year + 1900, stamp.tm_hour, stamp.tm_min);
998 998