diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2011-06-07 10:53:27 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-06-07 10:53:27 -0400 |
commit | 467ae367ed27976098d5065628daf24cee21e3b5 (patch) | |
tree | 390ffee0c98e21a3c051322c7940f5a764969c8a | |
parent | 02e1ffdefef7b3e3dd82198a0f2f7503e7883e9b (diff) |
connection: Fix pointer arithmetic error
Pointed out by Nicolas Pouillon in irc.
-rw-r--r-- | wayland/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wayland/connection.c b/wayland/connection.c index 259a68c..e5893c3 100644 --- a/wayland/connection.c +++ b/wayland/connection.c @@ -519,7 +519,7 @@ wl_connection_demarshal(struct wl_connection *connection, wl_connection_copy(connection, closure->buffer, size); p = &closure->buffer[2]; - end = (uint32_t *) ((char *) (p + size)); + end = (uint32_t *) ((char *) p + size); extra = (char *) end; for (i = 2; i < count; i++) { if (p + 1 > end) { |