Module: check_mk
Branch: master
Commit: 4cf8c420aa4618bbdfded2358e9354247114bdc4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4cf8c420aa4618…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jul 28 13:12:10 2014 +0200
Fixed error in windows agent which lead to compiler errors on newer
ubuntu versions
---
agents/windows/check_mk_agent.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/agents/windows/check_mk_agent.cc b/agents/windows/check_mk_agent.cc
index 5889c94..91e2864 100755
--- a/agents/windows/check_mk_agent.cc
+++ b/agents/windows/check_mk_agent.cc
@@ -2523,7 +2523,7 @@ bool handle_script_config_variable(char *var, char *value,
script_type type)
user = lstrip(var + 7);
runas_include* tmp = new runas_include();
- memset(tmp, 0, sizeof(tmp));
+ memset(tmp, 0, sizeof(*tmp));
if (user)
snprintf(tmp->user, sizeof(tmp->user), user);
@@ -3931,7 +3931,7 @@ bool handle_mrpe_config_variable(char *var, char *value)
user = lstrip(var + 7);
runas_include* tmp = new runas_include();
- memset(tmp, 0, sizeof(tmp));
+ memset(tmp, 0, sizeof(*tmp));
if (user)
snprintf(tmp->user, sizeof(tmp->user), user);