From ad9f880d619fbcd05585bf27b9954e2f57d879ff Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 22 Dec 2013 16:40:06 +0100 Subject: [PATCH] Fixed broken calls to memset. --- src/x11_window.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/x11_window.c b/src/x11_window.c index 0d749beb..e5bf436a 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -749,7 +749,7 @@ static void processEvent(XEvent *event) // Xdnd: reply with an XDND status message XEvent reply; - memset(&reply, sizeof(reply), 0); + memset(&reply, 0, sizeof(reply)); reply.type = ClientMessage; reply.xclient.window = event->xclient.data.l[0]; @@ -812,7 +812,8 @@ static void processEvent(XEvent *event) } XEvent reply; - memset(&reply, sizeof(reply), 0); + memset(&reply, 0, sizeof(reply)); + reply.type = ClientMessage; reply.xclient.window = _glfw.x11.xdnd.sourceWindow; reply.xclient.message_type = _glfw.x11.XdndFinished;