diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2005-04-04 18:24:12 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2005-04-04 18:24:12 +0000 |
commit | 0d27923ee385d88cbc24bfe5055c3ad880a50a37 (patch) | |
tree | 7f47facf7e9f0b15b7a714bc10e9ffbea4084697 | |
parent | feb5e486727a610c9f4035710175e76c5986cf46 (diff) | |
download | monitoring-plugins-archive/maint-1.4.tar.gz |
Fix static buffer (Nikolay Sturm)archive/maint-1.4
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/r1_4-patches@1155 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | plugins/check_smtp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c index f23e5d03..3bb6cc46 100644 --- a/plugins/check_smtp.c +++ b/plugins/check_smtp.c | |||
@@ -76,7 +76,7 @@ int my_close(void); | |||
76 | char regex_expect[MAX_INPUT_BUFFER] = ""; | 76 | char regex_expect[MAX_INPUT_BUFFER] = ""; |
77 | regex_t preg; | 77 | regex_t preg; |
78 | regmatch_t pmatch[10]; | 78 | regmatch_t pmatch[10]; |
79 | char timestamp[10] = ""; | 79 | char timestamp[20] = ""; |
80 | char errbuf[MAX_INPUT_BUFFER]; | 80 | char errbuf[MAX_INPUT_BUFFER]; |
81 | int cflags = REG_EXTENDED | REG_NOSUB | REG_NEWLINE; | 81 | int cflags = REG_EXTENDED | REG_NOSUB | REG_NEWLINE; |
82 | int eflags = 0; | 82 | int eflags = 0; |
@@ -665,7 +665,7 @@ check_certificate (X509 ** certificate) | |||
665 | 665 | ||
666 | days_left = (mktime (&stamp) - time (NULL)) / 86400; | 666 | days_left = (mktime (&stamp) - time (NULL)) / 86400; |
667 | snprintf | 667 | snprintf |
668 | (timestamp, 16, "%02d/%02d/%04d %02d:%02d", | 668 | (timestamp, sizeof(timestamp), "%02d/%02d/%04d %02d:%02d", |
669 | stamp.tm_mon + 1, | 669 | stamp.tm_mon + 1, |
670 | stamp.tm_mday, stamp.tm_year + 1900, stamp.tm_hour, stamp.tm_min); | 670 | stamp.tm_mday, stamp.tm_year + 1900, stamp.tm_hour, stamp.tm_min); |
671 | 671 | ||