diff --git a/pandora_agents/ChangeLog b/pandora_agents/ChangeLog index c5918d656a..a77e397b97 100644 --- a/pandora_agents/ChangeLog +++ b/pandora_agents/ChangeLog @@ -1,3 +1,8 @@ +2013-04-15 Ramon Novoa + + * win32/pandora_windows_service.cc: Open the XML data file in binary + mode to avoid getting extra carriage returns. + 2013-04-11 Hirofumi Kosaka * win32/pandora_windows_service.cc: Fixed possible resource leaks; diff --git a/pandora_agents/win32/pandora_windows_service.cc b/pandora_agents/win32/pandora_windows_service.cc index 28bf884176..e0a4d0a8c9 100644 --- a/pandora_agents/win32/pandora_windows_service.cc +++ b/pandora_agents/win32/pandora_windows_service.cc @@ -1583,7 +1583,7 @@ Pandora_Windows_Service::sendXml (Pandora_Module_List *modules) { /* Copy the XML to temporal file */ pandoraDebug ("Copying XML on %s", tmp_filepath.c_str ()); - conf_fh = fopen (tmp_filepath.c_str (), "w"); + conf_fh = fopen (tmp_filepath.c_str (), "wb"); if (conf_fh == NULL) { pandoraLog ("Error when saving the XML in %s", tmp_filepath.c_str ());