mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=4275
This commit is contained in:
parent
579f0be867
commit
1c5738a057
|
@ -17919,3 +17919,9 @@ David 30 Sept 2004
|
||||||
|
|
||||||
lib/
|
lib/
|
||||||
gui_rpc_client.C,h
|
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
|
||||||
|
|
|
@ -265,22 +265,22 @@ static void handle_get_proxy_settings(char* , MIOFILE& fout) {
|
||||||
|
|
||||||
// params:
|
// params:
|
||||||
// [ <seqno>n</seqno> ]
|
// [ <seqno>n</seqno> ]
|
||||||
// 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) {
|
void handle_get_messages(char* buf, MIOFILE& fout) {
|
||||||
int seqno=0, j;
|
int seqno=0, i, j;
|
||||||
unsigned int i;
|
unsigned int k;
|
||||||
MESSAGE_DESC* mdp;
|
MESSAGE_DESC* mdp;
|
||||||
bool found=false;
|
bool found=false;
|
||||||
|
|
||||||
parse_int(buf, "<seqno>", seqno);
|
parse_int(buf, "<seqno>", seqno);
|
||||||
|
|
||||||
j = message_descs.size()-1;
|
j = message_descs.size()-1;
|
||||||
for (i=0; i<message_descs.size(); i++) {
|
for (k=0; k<message_descs.size(); k++) {
|
||||||
mdp = message_descs[i];
|
mdp = message_descs[k];
|
||||||
if (mdp->seqno <= seqno) {
|
if (mdp->seqno <= seqno) {
|
||||||
found = true;
|
found = true;
|
||||||
j = i;
|
j = k-1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue