diff options
author | Dennis Brakhane <brakhane@gmail.com> | 2016-06-19 02:06:25 +0200 |
---|---|---|
committer | Dennis Brakhane <brakhane@gmail.com> | 2016-06-19 02:07:51 +0200 |
commit | 3d85a144040389be950f3a34806016252ce9d73d (patch) | |
tree | c49c20d1938dee18f83955cc9805647ebceb424b | |
parent | bd79aa52ab2ef7eec4cad55d373b6e4fc7de7731 (diff) |
fix memset calls
Order is "mem, val, count", not "mem, count, val"
-rw-r--r-- | platform/x11/os_x11.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index 1ca779ef7c..c9349c1bbe 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -1625,7 +1625,7 @@ void OS_X11::process_xevents() { //Reply that all is well. XClientMessageEvent m; - memset(&m, sizeof(m), 0); + memset(&m, 0, sizeof(m)); m.type = ClientMessage; m.display = x11_display; m.window = xdnd_source_window; @@ -1662,7 +1662,7 @@ void OS_X11::process_xevents() { //xdnd position event, reply with an XDND status message //just depending on type of data for now XClientMessageEvent m; - memset(&m, sizeof(m), 0); + memset(&m, 0, sizeof(m)); m.type = ClientMessage; m.display = event.xclient.display; m.window = event.xclient.data.l[0]; @@ -1689,7 +1689,7 @@ void OS_X11::process_xevents() { else { //Reply that we're not interested. XClientMessageEvent m; - memset(&m, sizeof(m), 0); + memset(&m, 0, sizeof(m)); m.type = ClientMessage; m.display = event.xclient.display; m.window = event.xclient.data.l[0]; |