#include <Python.h>
}
+#include <cstring>
+
namespace ob {
static PyObject *obdict = NULL;
{
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;
}
num_desktops = 1;
}
+Config::~Config()
+{
+}
+
}