summaryrefslogtreecommitdiffstats
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
commit76ba1310211f9f28a8f34a5e5cd1029d56210ca1 (patch)
treef180d2041b122456b8bfc442f670aec28721ce3b
parenta8d8b101cfe6889cb19723f7f0053f4568546a5a (diff)
downloadmonitoring-plugins-76ba1310211f9f28a8f34a5e5cd1029d56210ca1.tar.gz
* bugfix: snprintf of timestamp truncated '\0'
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@689 f882894a-f735-0410-b71e-b25c423dba1c
-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 6a216a5c..61a84f26 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -973,7 +973,7 @@ check_certificate (X509 ** certificate)
973 973
974 days_left = (mktime (&stamp) - time (NULL)) / 86400; 974 days_left = (mktime (&stamp) - time (NULL)) / 86400;
975 snprintf 975 snprintf
976 (timestamp, 16, "%02d/%02d/%04d %02d:%02d", 976 (timestamp, 17, "%02d/%02d/%04d %02d:%02d",
977 stamp.tm_mon + 1, 977 stamp.tm_mon + 1,
978 stamp.tm_mday, stamp.tm_year + 1900, stamp.tm_hour, stamp.tm_min); 978 stamp.tm_mday, stamp.tm_year + 1900, stamp.tm_hour, stamp.tm_min);
979 979