diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-11-28 07:41:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-28 07:41:55 -0500 |
commit | 3033f33a1d0923c6e046167d0dec7eec4d9d7a68 (patch) | |
tree | 762285a6c5eae5da7ee5cd6fe26990fa1c6d31ad | |
parent | 05bb44078667a11216611a8fbe87c5fe69e117f8 (diff) | |
parent | 408e2a77e9fe49b6753261e8e96d80fd579571c0 (diff) |
Merge pull request #1399 from emersion/fix-wl-backend-zero-vla
backend/wayland: fix zero-length VLA
-rw-r--r-- | backend/wayland/wl_seat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/wayland/wl_seat.c b/backend/wayland/wl_seat.c index c4098987..b654197a 100644 --- a/backend/wayland/wl_seat.c +++ b/backend/wayland/wl_seat.c @@ -203,7 +203,7 @@ static void keyboard_handle_leave(void *data, struct wl_keyboard *wl_keyboard, uint32_t time = get_current_time_msec(); - uint32_t pressed[dev->keyboard->num_keycodes]; + uint32_t pressed[dev->keyboard->num_keycodes + 1]; memcpy(pressed, dev->keyboard->keycodes, dev->keyboard->num_keycodes * sizeof(uint32_t)); |