diff --git a/pandora_agents/win32/ChangeLog b/pandora_agents/win32/ChangeLog index 0ce005de07..f6c34378a8 100644 --- a/pandora_agents/win32/ChangeLog +++ b/pandora_agents/win32/ChangeLog @@ -1,3 +1,8 @@ +2013-04-17 Ramon Novoa + + * windows/pandora_wmi.cc: Fixed a bug when concatenating multiple ip + addresses. + 2013-04-12 Ramon Novoa * modules/pandora_module_factory.cc: Added macro support to all diff --git a/pandora_agents/win32/windows/pandora_wmi.cc b/pandora_agents/win32/windows/pandora_wmi.cc index bae1960605..cf0f3f53dd 100644 --- a/pandora_agents/win32/windows/pandora_wmi.cc +++ b/pandora_agents/win32/windows/pandora_wmi.cc @@ -935,8 +935,7 @@ getIPs(VARIANT *ip_array){ } int num_ips = V_ARRAY(ip_array)->rgsabound[0].cElements; for (i = 0;i < num_ips;i++) { - if ((i > 0) && (i < num_ips - 1 )) - { + if (i > 0) { ret += " , "; } if (V_VT(&pvArray[i]) == VT_BSTR) {