Mac SS: Fix build break due to RPC changes of std::string to char[n]

svn path=/trunk/boinc/; revision=20985
This commit is contained in:
Charlie Fenton 2010-03-23 09:52:05 +00:00
parent 97f09a68c3
commit 3ca5c8ac21
2 changed files with 8 additions and 2 deletions

View File

@ -2051,3 +2051,9 @@ David 22 Mar 2010
BOINCBaseFrame.h
lib/
mfile.cpp
Charlie 23 Mar 2010
- Mac SS: Fix build break due to RPC changes of std::string to char[n].
clientscr/
screensaver.cpp

View File

@ -176,14 +176,14 @@ int CScreensaver::launch_screensaver(RESULT* rp, int& graphics_application)
char* argv[5];
argv[0] = "gfx_Switcher";
argv[1] = "-launch_gfx";
argv[2] = strrchr(rp->slot_path.c_str(), '/');
argv[2] = strrchr(rp->slot_path, '/');
if (*argv[2]) argv[2]++; // Point to the slot number in ascii
argv[3] = "--fullscreen";
argv[4] = 0;
retval = run_program(
rp->slot_path.c_str(),
rp->slot_path,
m_gfx_Switcher_Path,
4,
argv,