From 894726670f8d78de25e5d8d5a0f3baad4bab6ca0 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 20 Jul 2006 22:52:57 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=10708 --- checkin_notes | 9 ++++++++- client/gui_rpc_server_ops.C | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index 3ed9f2d808..0800327cb4 100755 --- a/checkin_notes +++ b/checkin_notes @@ -7770,9 +7770,16 @@ David 20 July 2006 log_flags.C,h David 20 July 2006 - - core client: fix crashing if client state file has + - core client: fix crash if client state file has for a project with no account file. Also shuffled logic of state file parsing to reduce indentation client/ cs_statefile.C + +David 20 July 2006 + - core client: fix crash if use flag, + and some GUI RPC reply is long (> 8K chars) + + client/ + gui_rpc_server_ops.C diff --git a/client/gui_rpc_server_ops.C b/client/gui_rpc_server_ops.C index 4fc579b730..937d3ada4c 100644 --- a/client/gui_rpc_server_ops.C +++ b/client/gui_rpc_server_ops.C @@ -950,12 +950,13 @@ int GUI_RPC_CONN::handle_rpc() { mf.printf("\n\003"); m.get_buf(p, n); if (p) { + send(sock, p, n, 0); if (log_flags.guirpc_debug) { + if (n > 1000) p[1000] = 0; msg_printf(0, MSG_INFO, "GUI RPC reply: '%s'\n", p ); } - send(sock, p, n, 0); free(p); }