From 99258dcecba8ef36e1ce0fd6e0dacffe53613ac9 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 24 Apr 2013 20:00:02 -0700 Subject: [PATCH] - client: fix compile warning --- client/cs_account.cpp | 2 +- client/project.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/client/cs_account.cpp b/client/cs_account.cpp index 04d1981448..30d22c29b7 100644 --- a/client/cs_account.cpp +++ b/client/cs_account.cpp @@ -79,7 +79,7 @@ int PROJECT::write_account_file() { fprintf(f, "\n%s\n", project_prefs.c_str() ); - fprintf(f, gui_urls.c_str()); + fprintf(f, "%s", gui_urls.c_str()); fprintf(f, "\n"); fclose(f); retval = boinc_rename(TEMP_ACCT_FILE_NAME, path); diff --git a/client/project.cpp b/client/project.cpp index dd84b3e956..2914e8fab1 100644 --- a/client/project.cpp +++ b/client/project.cpp @@ -33,8 +33,6 @@ PROJECT::PROJECT() { } void PROJECT::init() { - strcpy(_project_dir, ""); - strcpy(_project_dir_absolute, ""); strcpy(master_url, ""); strcpy(authenticator, ""); strcpy(_project_dir, "");