]> Dogcows Code - chaz/openbox/blobdiff - cwmcc/prop.c
move the openbox engine into librender and the kernel. the theme is loaded and stored...
[chaz/openbox] / cwmcc / prop.c
index b855c909106d3f6ff4d487088ba1fb5c44b1c9d4..6e9e08126c976d4b72f7ab7725a969a566ef0478 100644 (file)
@@ -84,9 +84,7 @@ static gboolean get_all(Window win, Atom prop, Atom type, int size,
                             &ret_items, &bytes_left, &xdata);
     if (res == Success) {
        if (ret_size == size && ret_items > 0) {
-           *data = g_malloc(ret_items * (size / 8) + sizeof(guchar*));
-            g_memmove(*data, xdata, ret_items * (size / 8));
-            data[ret_items * (size / 8)] = NULL;
+           *data = g_memdup(xdata, ret_items * (size / 8));
            *num = ret_items;
            ret = TRUE;
        }
This page took 0.025976 seconds and 4 git commands to generate.