- client: fix compile warning

This commit is contained in:
David Anderson 2013-04-24 20:00:02 -07:00
parent 8740e9a2b5
commit 99258dcecb
2 changed files with 1 additions and 3 deletions

View File

@ -79,7 +79,7 @@ int PROJECT::write_account_file() {
fprintf(f, "<project_preferences>\n%s</project_preferences>\n", fprintf(f, "<project_preferences>\n%s</project_preferences>\n",
project_prefs.c_str() project_prefs.c_str()
); );
fprintf(f, gui_urls.c_str()); fprintf(f, "%s", gui_urls.c_str());
fprintf(f, "</account>\n"); fprintf(f, "</account>\n");
fclose(f); fclose(f);
retval = boinc_rename(TEMP_ACCT_FILE_NAME, path); retval = boinc_rename(TEMP_ACCT_FILE_NAME, path);

View File

@ -33,8 +33,6 @@ PROJECT::PROJECT() {
} }
void PROJECT::init() { void PROJECT::init() {
strcpy(_project_dir, "");
strcpy(_project_dir_absolute, "");
strcpy(master_url, ""); strcpy(master_url, "");
strcpy(authenticator, ""); strcpy(authenticator, "");
strcpy(_project_dir, ""); strcpy(_project_dir, "");