svn path=/trunk/boinc/; revision=20649

This commit is contained in:
David Anderson 2010-02-18 22:45:36 +00:00
parent a60e21ce89
commit 7fc33c1b6d
1 changed files with 5 additions and 5 deletions

View File

@ -256,7 +256,7 @@ void APP_INIT_DATA::clear() {
}
int parse_init_data_file(FILE* f, APP_INIT_DATA& ai) {
char tag[1024];
char tag[1024], buf[256];
int retval;
bool flag, is_tag;
@ -310,12 +310,12 @@ int parse_init_data_file(FILE* f, APP_INIT_DATA& ai) {
if (xp.parse_str(tag, "symstore", ai.symstore, sizeof(ai.symstore))) continue;
if (xp.parse_str(tag, "acct_mgr_url", ai.acct_mgr_url, sizeof(ai.acct_mgr_url))) continue;
if (xp.parse_int(tag, "hostid", ai.hostid)) continue;
if (xp.parse_str(tag, "user_name", ai.user_name, sizeof(ai.user_name))) {
xml_unescape(ai.user_name);
if (xp.parse_str(tag, "user_name", buf, sizeof(buf))) {
xml_unescape(buf, ai.user_name, sizeof(ai.user_name));
continue;
}
if (xp.parse_str(tag, "team_name", ai.team_name, sizeof(ai.team_name))) {
xml_unescape(ai.team_name);
if (xp.parse_str(tag, "team_name", buf, sizeof(buf))) {
xml_unescape(buf, ai.team_name, sizeof(ai.team_name));
continue;
}
if (xp.parse_str(tag, "project_dir", ai.project_dir, sizeof(ai.project_dir))) continue;