From b5290af2e8fe31098a3a70e5e7fe100170273e2f Mon Sep 17 00:00:00 2001 From: "Eric J. Korpela" Date: Tue, 28 Nov 2006 21:16:04 +0000 Subject: [PATCH] Fixed potential format string vulnerability. Reported by Nicolas Alvarez. svn path=/trunk/boinc/; revision=11599 --- client/client_state.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/client_state.C b/client/client_state.C index 1ed2915cd9..0b816678f3 100644 --- a/client/client_state.C +++ b/client/client_state.C @@ -904,7 +904,7 @@ bool CLIENT_STATE::garbage_collect_always() { rp->output_files[i].file_info->ref_cnt++; } if (found_error) { - report_result_error(*rp, error_str.c_str()); + report_result_error(*rp, "%s", error_str.c_str()); } rp->wup->ref_cnt++; result_iter++;