mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-21 06:59:46 -05:00
connection: Fix pointer arithmetic error
Pointed out by Nicolas Pouillon in irc.
This commit is contained in:
parent
02e1ffdefe
commit
467ae367ed
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue