mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
Fix static buffer (Nikolay Sturm)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/r1_4-patches@1155 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
feb5e48672
commit
0d27923ee3
1 changed files with 2 additions and 2 deletions
|
|
@ -76,7 +76,7 @@ int my_close(void);
|
|||
char regex_expect[MAX_INPUT_BUFFER] = "";
|
||||
regex_t preg;
|
||||
regmatch_t pmatch[10];
|
||||
char timestamp[10] = "";
|
||||
char timestamp[20] = "";
|
||||
char errbuf[MAX_INPUT_BUFFER];
|
||||
int cflags = REG_EXTENDED | REG_NOSUB | REG_NEWLINE;
|
||||
int eflags = 0;
|
||||
|
|
@ -665,7 +665,7 @@ check_certificate (X509 ** certificate)
|
|||
|
||||
days_left = (mktime (&stamp) - time (NULL)) / 86400;
|
||||
snprintf
|
||||
(timestamp, 16, "%02d/%02d/%04d %02d:%02d",
|
||||
(timestamp, sizeof(timestamp), "%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