From 535e2c65c720390b8bb7e02391e702c87ad1ca19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Wed, 20 Jul 2011 18:15:50 -0700 Subject: [PATCH] xserver: Memset the right size --- compositor/xserver-launcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compositor/xserver-launcher.c b/compositor/xserver-launcher.c index fb953a2b..e3553e3d 100644 --- a/compositor/xserver-launcher.c +++ b/compositor/xserver-launcher.c @@ -564,7 +564,7 @@ wlsc_xserver_init(struct wlsc_compositor *compositor) int fd; mxs = malloc(sizeof *mxs); - memset(mxs, 0, sizeof mxs); + memset(mxs, 0, sizeof *mxs); mxs->process.cleanup = wlsc_xserver_cleanup; mxs->wl_display = display;