mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-23 23:29:17 -04:00
* bugfix: snprintf of timestamp truncated '\0'
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@689 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
eebd232461
commit
d35f99c8a9
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue