diff options
author | Drew DeVault <[email protected]> | 2015-11-18 09:55:55 -0500 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2015-11-18 09:55:55 -0500 |
commit | 86372d00db86502cb41ae645b917c8191c22c994 (patch) | |
tree | 47a11db9d457d7f4f95dcf4531d1f8bac1994da0 /wayland/buffers.c | |
parent | 665d4baaf170d2723f89a482298d1f972431b3c3 (diff) |
Fix SIGBUS from wayland clients
Diffstat (limited to 'wayland/buffers.c')
-rw-r--r-- | wayland/buffers.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wayland/buffers.c b/wayland/buffers.c index f426b912..6117e10b 100644 --- a/wayland/buffers.c +++ b/wayland/buffers.c @@ -66,6 +66,8 @@ static struct buffer *create_buffer(struct client_state *state, struct buffer *b free(name); fd = -1; + buf->width = width; + buf->height = height; buf->surface = cairo_image_surface_create_for_data(data, CAIRO_FORMAT_ARGB32, width, height, stride); buf->cairo = cairo_create(buf->surface); buf->pango = pango_cairo_create_context(buf->cairo); |