- 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
This commit is contained in:
David Anderson 2011-10-19 07:27:52 +00:00
parent b95ac02c5b
commit 4d7d415b6d
2 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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("</set_global_prefs_override>", 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("</set_cc_config>", buf, sizeof(buf));
if (!retval) {
if (strlen(buf)) {