diff -urN compizconfig-python-0.9.5.94.org/src/compizconfig.pyx compizconfig-python-0.9.5.94/src/compizconfig.pyx
--- compizconfig-python-0.9.5.94.org/src/compizconfig.pyx       2011-09-03 02:36:32.000000000 +0900
+++ compizconfig-python-0.9.5.94/src/compizconfig.pyx   2011-10-07 15:36:19.034895854 +0900
@@ -1178,11 +1178,11 @@
         self.profiles = {}
         self.currentProfile = Profile (self, ccsGetProfile (self.ccsContext))
         cdef CCSStringList * profileList
-        cdef char * profileName
+        cdef CCSString * profileName
         profileList = ccsGetExistingProfiles (self.ccsContext)
         while profileList != NULL:
-            profileName = <char *> profileList.data
-            self.profiles[profileName] = Profile (self, profileName)
+            profileName = <CCSString *> profileList.data
+            self.profiles[profileName.value] = Profile (self, profileName.value)
             profileList = profileList.next
 
         self.backends = {}