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;
}
}