]> Dogcows Code - chaz/openbox/blobdiff - src/config.cc
dont provide a default icon in the python stuff, itll come from the style
[chaz/openbox] / src / config.cc
index e4df70e15f4a157cb69f8d7dc8ed39cc627fd611..8d569693aebb3514d267aefed46d9b550066b632 100644 (file)
@@ -8,6 +8,8 @@ extern "C" {
 #include <Python.h>
 }
 
+#include <cstring>
+
 namespace ob {
 
 static PyObject *obdict = NULL;
@@ -25,8 +27,9 @@ bool python_get_string(const char *name, otk::ustring *value)
 {
   PyObject *val = PyDict_GetItemString(obdict, const_cast<char*>(name));
   if (!(val && PyString_Check(val))) return false;
-  
-  *value = PyString_AsString(val);
+
+  std::string temp(PyString_AsString(val), PyString_Size(val));
+  *value = temp;
   return true;
 }
 
@@ -68,4 +71,8 @@ Config::Config()
     num_desktops = 1;
 }
 
+Config::~Config()
+{
+}
+
 }
This page took 0.02112 seconds and 4 git commands to generate.