Fixed potential format string vulnerability. Reported by Nicolas Alvarez.

svn path=/trunk/boinc/; revision=11599
This commit is contained in:
Eric J. Korpela 2006-11-28 21:16:04 +00:00
parent bca1fcffb2
commit b5290af2e8
1 changed files with 1 additions and 1 deletions

View File

@ -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++;