From 654f2468f6d868a8032dbda97ef7c49a06fd4dfc Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 19 Apr 2011 05:07:08 +0000 Subject: [PATCH] - client: replace % with %% in messages from scheduler (else they're interpreted as format strings) svn path=/trunk/boinc/; revision=23379 --- checkin_notes | 8 ++++++++ client/client_state.h | 1 + client/cs_scheduler.cpp | 4 +++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index aa24c3811e..ca29e827f1 100644 --- a/checkin_notes +++ b/checkin_notes @@ -2306,3 +2306,11 @@ David 18 Apr 2011 html/inc/ friend.inc + +David 18 Apr 2011 + - client: replace % with %% in messages from scheduler + (else they're interpreted as format strings) + + client/ + client_state.h + cs_scheduler.cpp diff --git a/client/client_state.h b/client/client_state.h index 0c7557a11f..a083610fa0 100644 --- a/client/client_state.h +++ b/client/client_state.h @@ -211,6 +211,7 @@ struct CLIENT_STATE { void all_projects_list_check(); double new_version_check_time; double all_projects_list_check_time; + // the time we last successfully fetched the project list string newer_version; // --------------- client_state.cpp: diff --git a/client/cs_scheduler.cpp b/client/cs_scheduler.cpp index a6822458a5..5878a96d2a 100644 --- a/client/cs_scheduler.cpp +++ b/client/cs_scheduler.cpp @@ -577,7 +577,9 @@ int CLIENT_STATE::handle_scheduler_reply(PROJECT* project, char* scheduler_url) for (i=0; i