2013-04-15 Ramon Novoa <rnovoa@artica.es>

* win32/pandora_windows_service.cc: Open the XML data file in binary
	  mode to avoid getting extra carriage returns.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7987 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
ramonn 2013-04-15 17:12:25 +00:00
parent 433e2c1626
commit 4e87eb50c6
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-04-15 Ramon Novoa <rnovoa@artica.es>
* win32/pandora_windows_service.cc: Open the XML data file in binary
mode to avoid getting extra carriage returns.
2013-04-11 Hirofumi Kosaka <kosaka@rworks.jp>
* win32/pandora_windows_service.cc: Fixed possible resource leaks;

View File

@ -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 ());