Removed superfluous call to wl_copy_connection
authorAndy Nichols <andy.nichols@nokia.com>
Thu, 24 Nov 2011 09:19:18 +0000 (10:19 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 14 Dec 2011 17:44:12 +0000 (12:44 -0500)
The only purpose those code seems to serve is to introduce a buffer
overflow when events contain more than 128 bytes of data.

src/wayland-client.c

index 836a31c..e4f2c99 100644 (file)
@@ -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) {