From 1c5738a0572a7816306f6e9540c4a4e000d84072 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 30 Sep 2004 23:35:30 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=4275 --- checkin_notes | 6 ++++++ client/gui_rpc_server.C | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/checkin_notes b/checkin_notes index e3e5584b10..1415a0ccb1 100755 --- a/checkin_notes +++ b/checkin_notes @@ -17919,3 +17919,9 @@ David 30 Sept 2004 lib/ gui_rpc_client.C,h + +David 30 Sept 2004 + - fix crashing bug in get_messages GUI RPC (signed/unsigned issue) + + client/ + gui_rpc_server.C diff --git a/client/gui_rpc_server.C b/client/gui_rpc_server.C index e951be3946..d10c6d83c6 100644 --- a/client/gui_rpc_server.C +++ b/client/gui_rpc_server.C @@ -265,22 +265,22 @@ static void handle_get_proxy_settings(char* , MIOFILE& fout) { // params: // [ n ] -// start at message seqno n; if absent or zero, return all +// return only msgs with seqno > n; if absent or zero, return all // void handle_get_messages(char* buf, MIOFILE& fout) { - int seqno=0, j; - unsigned int i; + int seqno=0, i, j; + unsigned int k; MESSAGE_DESC* mdp; bool found=false; parse_int(buf, "", seqno); j = message_descs.size()-1; - for (i=0; iseqno <= seqno) { found = true; - j = i; + j = k-1; break; } }