summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@nokia.com>2011-11-24 10:19:18 +0100
committerKristian Høgsberg <krh@bitplanet.net>2011-12-14 12:44:12 -0500
commitf598691831db779aab1f5dd17ace5992a0928960 (patch)
treebd258e0070e9d2a105bb5ab835161b0b9a5447e9
parent187eace6139754eae58a21303c808a270f70dc3f (diff)
Removed superfluous call to wl_copy_connection
The only purpose those code seems to serve is to introduce a buffer overflow when events contain more than 128 bytes of data.
-rw-r--r--src/wayland-client.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/wayland-client.c b/src/wayland-client.c
index 836a31c..e4f2c99 100644
--- a/src/wayland-client.c
+++ b/src/wayland-client.c
@@ -453,12 +453,10 @@ static void
handle_event(struct wl_display *display,
uint32_t id, uint32_t opcode, uint32_t size)
{
- uint32_t p[32];
struct wl_proxy *proxy;
struct wl_closure *closure;
const struct wl_message *message;
- wl_connection_copy(display->connection, p, size);
proxy = wl_map_lookup(&display->objects, id);
if (proxy == WL_ZOMBIE_OBJECT) {