From 4d7d415b6d08c176b366682d8c57fcabd1544ba8 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 19 Oct 2011 07:27:52 +0000 Subject: [PATCH] - client: fix bug that caused extra "<" to get written at end of global_prefs_override.xml and cc_config.xml when they are modified via GUI RPCs svn path=/trunk/boinc/; revision=24430 --- checkin_notes | 8 ++++++++ client/gui_rpc_server_ops.cpp | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index bf19143034..7843cc27aa 100644 --- a/checkin_notes +++ b/checkin_notes @@ -7466,3 +7466,11 @@ David 18 Oct 2011 rr_sim.cpp sim_util.cpp cpu_sched.cpp + +David 18 Oct 2011 + - client: fix bug that caused extra "<" to get written at + end of global_prefs_override.xml and cc_config.xml + when they are modified via GUI RPCs + + client/ + gui_rpc_server_ops.cpp diff --git a/client/gui_rpc_server_ops.cpp b/client/gui_rpc_server_ops.cpp index f4db3b2d28..da006bb6e5 100644 --- a/client/gui_rpc_server_ops.cpp +++ b/client/gui_rpc_server_ops.cpp @@ -974,7 +974,7 @@ static void handle_set_global_prefs_override(GUI_RPC_CONN& grc) { int retval; char buf[65536]; - retval = grc.xp.element_contents("/set_global_prefs_override", buf, sizeof(buf)); + retval = grc.xp.element_contents("", buf, sizeof(buf)); if (!retval) { if (strlen(buf)) { FILE* f = boinc_fopen(GLOBAL_PREFS_OVERRIDE_FILE, "w"); @@ -1023,7 +1023,7 @@ static void handle_set_cc_config(GUI_RPC_CONN& grc) { int retval; char buf[65536]; - retval = grc.xp.element_contents("/set_cc_config", buf, sizeof(buf)); + retval = grc.xp.element_contents("", buf, sizeof(buf)); if (!retval) { if (strlen(buf)) {