- client: fix bug in parsing of <link rel=boinc_scheduler ...>

element in master files.  fixes #467

svn path=/trunk/boinc/; revision=14167
This commit is contained in:
David Anderson 2007-11-12 23:08:43 +00:00
parent 75e5e0a1ee
commit 715f4d46dd
2 changed files with 8 additions and 1 deletions

View File

@ -10817,3 +10817,10 @@ David 12 Nov 2007
results.php
show_user.php
workunit.php
David 12 Nov 2007
- client: fix bug in parsing of <link rel=boinc_scheduler ...>
element in master files. fixes #467
client/
scheduler_op.C

View File

@ -306,7 +306,7 @@ int SCHEDULER_OP::parse_master_file(PROJECT* p, vector<std::string> &urls) {
while (q) {
n = sscanf(q, "<link rel=\"boinc_scheduler\" href=\"%s", buf2);
if (n == 1) {
char* q2 = strchr(buf2, '\"');
char* q2 = strchr(buf2, '"');
if (q2) *q2 = 0;
strip_whitespace(buf2);
str = string(buf2);