diff options
author | Alexander Vladishev <aleksander.vladishev@zabbix.com> | 2010-01-19 11:35:38 +0300 |
---|---|---|
committer | Alexander Vladishev <aleksander.vladishev@zabbix.com> | 2010-01-19 11:35:38 +0300 |
commit | 9b9a6746d65521d4878e32722422cb7639a76321 (patch) | |
tree | 5604f20160465a275d9f0e77cef997163818c216 /include/perfmon.h | |
parent | 40bf3e58ffc9ffdc9eec85362841eacda82166ff (diff) |
- [ZBX-1635] fixed possible Windows agent crash when using checks based on performance counters
[svn merge svn://svn.zabbix.com/branches/1.8 -r9413:9416]
Diffstat (limited to 'include/perfmon.h')
-rw-r--r-- | include/perfmon.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/perfmon.h b/include/perfmon.h index a9adfd03c6f..502502758ad 100644 --- a/include/perfmon.h +++ b/include/perfmon.h @@ -40,13 +40,11 @@ // Performance Countername structure // -#define MAX_PERFCOUNTER_NAME_LEN (108) /* old naming <MAX_COUNTER_NAME> */ - struct perfcounter { struct perfcounter *next; unsigned long pdhIndex; - TCHAR name[MAX_PERFCOUNTER_NAME_LEN]; + TCHAR name[PDH_MAX_COUNTER_NAME]; /* must be caracter array! if you want to rewrite */ /* to dinacal memory allocation CHECK for usage */ /* of sizeof function */ |