all repos — openbox @ f8ad321e50c7838a747b3314676ab24ee4d0e423

openbox fork - make it a bit more like ryudo

malloc.  yeah.
Derek Foreman manmower@gmail.com
commit

f8ad321e50c7838a747b3314676ab24ee4d0e423

parent

bb3e654edef54efd6d0c24cbf6014eb4f9468037

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M render/render.crender/render.c

@@ -177,7 +177,10 @@ spc->pixel_data = NULL;

break; } copy->textures = orig->textures; - memcpy(copy->texture, orig->texture, orig->textures * sizeof(Texture)); + if (orig->textures) { + copy->texture = malloc(orig->textures * sizeof(Texture)); + memcpy(copy->texture, orig->texture, orig->textures * sizeof(Texture)); + } else copy->texture = NULL; copy->pixmap = None; copy->xftdraw = NULL; return copy;