From 74c02238615bccfef36342a40b8f0ab7d42bb2ec Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 10 Nov 2009 05:42:51 +0000 Subject: [PATCH] - client: fix bug that crashed client if client_state.xml had garbage within svn path=/trunk/boinc/; revision=19525 --- checkin_notes | 7 +++++++ client/client_types.cpp | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index a94534ed4d..2e5f2bce36 100644 --- a/checkin_notes +++ b/checkin_notes @@ -8998,3 +8998,10 @@ David 9 Nov 2009 log_flags.cpp sched/ sched_locality.cpp + +David 9 Nov 2009 + - client: fix bug that crashed client if client_state.xml + had garbage within + + client/ + client_types.cpp diff --git a/client/client_types.cpp b/client/client_types.cpp index a8cfe20b4c..112c1891cd 100644 --- a/client/client_types.cpp +++ b/client/client_types.cpp @@ -789,7 +789,7 @@ int FILE_INFO::parse(MIOFILE& in, bool from_server) { continue; } - strcat(signed_xml, buf); + safe_strcat(signed_xml, buf); if (parse_str(buf, "", name, sizeof(name))) continue; if (parse_str(buf, "", url)) { urls.push_back(url);