Mac build fixes

This commit is contained in:
David Anderson 2020-05-15 21:02:15 -07:00
parent 918b7c8f13
commit befd835e09
2 changed files with 4 additions and 2 deletions

View File

@ -65,10 +65,11 @@ void killGfxApp(pid_t thePID) {
char userName[64];
RPC_CLIENT *rpc;
int retval;
string msg;
chdir("/Library/Application Support/BOINC Data");
safe_strcpy(buf, "");
read_gui_rpc_password(buf);
read_gui_rpc_password(buf, msg);
rpc = new RPC_CLIENT;
if (rpc->init(NULL)) { // Initialize communications with Core Client

View File

@ -308,6 +308,7 @@ void doBoinc_Sleep(double seconds) {
CScreensaver::CScreensaver() {
struct ss_periods periods;
char saved_dir[MAXPATHLEN];
string msg;
m_dwBlankScreen = 0;
m_dwBlankTime = 0;
@ -334,7 +335,7 @@ CScreensaver::CScreensaver() {
if (gIsCatalina) {
getcwd(saved_dir, sizeof(saved_dir));
chdir("/Library/Application Support/BOINC Data");
read_gui_rpc_password(passwd_buf);
read_gui_rpc_password(passwd_buf, msg);
chdir(saved_dir);
CFStringRef cf_gUserName = SCDynamicStoreCopyConsoleUser(NULL, NULL, NULL);