diff --git a/BOINCClientAdapter.cpp b/BOINCClientAdapter.cpp
index 901e2ce5afef07d0c41fbe63659cdaadb96abfc8..4f301b83732885f15233d6ab9c4caad6a5a1b343 100644
--- a/BOINCClientAdapter.cpp
+++ b/BOINCClientAdapter.cpp
@@ -45,7 +45,7 @@ void BOINCClientAdapter::readSharedMemoryArea()
 	}
 	// the shared memory area's not available, try to get a pointer to it
 	else {
-	   m_SharedMemoryArea = (char*) boinc_graphics_get_shmem(m_SharedMemoryAreaIdentifier.c_str());
+	   m_SharedMemoryArea = (char*) boinc_graphics_get_shmem((char*)m_SharedMemoryAreaIdentifier.c_str());
 	    
 	    if(m_SharedMemoryArea) {
 	    	// fine, get the contents recursively