diff options
Diffstat (limited to 'plugins/check_mysql.c')
-rw-r--r-- | plugins/check_mysql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index 8dc554f..9b7d13f 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c | |||
@@ -110,7 +110,7 @@ main (int argc, char **argv) | |||
110 | 110 | ||
111 | char *result = NULL; | 111 | char *result = NULL; |
112 | char *error = NULL; | 112 | char *error = NULL; |
113 | char slaveresult[SLAVERESULTSIZE]; | 113 | char slaveresult[SLAVERESULTSIZE] = { 0 }; |
114 | char* perf; | 114 | char* perf; |
115 | 115 | ||
116 | perf = strdup (""); | 116 | perf = strdup (""); |
@@ -299,7 +299,7 @@ main (int argc, char **argv) | |||
299 | if (mysqldump_threads == 0) { | 299 | if (mysqldump_threads == 0) { |
300 | die (STATE_CRITICAL, "%s\n", slaveresult); | 300 | die (STATE_CRITICAL, "%s\n", slaveresult); |
301 | } else { | 301 | } else { |
302 | strlcat (slaveresult, " Mysqldump: in progress", SLAVERESULTSIZE); | 302 | strncat(slaveresult, " Mysqldump: in progress", SLAVERESULTSIZE-1); |
303 | } | 303 | } |
304 | } | 304 | } |
305 | 305 | ||