summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--src/zabbix_agent/active.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 22c547c4..dd157922 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
Changes for 1.1alpha11:
+ - fixed parameter of strncpy() in active.c (Alexei)
- added column screens_items.rowspan (Alexei)
- support of rowspan in screens (Alexei)
- fixed selection of host in Event History (Alexei)
diff --git a/src/zabbix_agent/active.c b/src/zabbix_agent/active.c
index a8a327ad..9cb96689 100644
--- a/src/zabbix_agent/active.c
+++ b/src/zabbix_agent/active.c
@@ -280,7 +280,7 @@ int get_active_checks(char *server, int port, char *error, int max_error_len)
close(s);
return FAIL;
}
- strncat(c,tmp,MAX_BUF_LEN-1);
+ strncat(c,tmp,len);
}
zabbix_log(LOG_LEVEL_DEBUG, "Read [%s]", c);