From dc137ef1a6aaab4047c3b5b6610b36855a971b12 Mon Sep 17 00:00:00 2001 From: o9000 Date: Tue, 20 Jan 2015 01:27:15 +0000 Subject: [PATCH] Fix incorrect memset git-svn-id: http://tint2.googlecode.com/svn/trunk@653 121b4492-b84c-0410-8b4c-0d4edfb3f3cc --- src/tint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tint.c b/src/tint.c index 4d9e6b8..b8f2021 100644 --- a/src/tint.c +++ b/src/tint.c @@ -998,7 +998,7 @@ void dnd_drop(XClientMessageEvent *e) //The source is sending anyway, despite instructions to the contrary. //So reply that we're not interested. XClientMessageEvent m; - memset(&m, sizeof(m), 0); + memset(&m, 0, sizeof(m)); m.type = ClientMessage; m.display = e->display; m.window = e->data.l[0]; @@ -1304,7 +1304,7 @@ start: // Reply OK. XClientMessageEvent m; - memset(&m, sizeof(m), 0); + memset(&m, 0, sizeof(m)); m.type = ClientMessage; m.display = server.dsp; m.window = dnd_source_window;