mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-08 18:20:30 +01:00
evdev: remove duplicate sizeof
This looks like a copy-and-paste error. In practice it was harmless on
64-bit systems because evdev_event happens to be 64 bits long, but on
32-bit systems it would allocate too little memory.
Found by GCC 15 with _FORTIFY_SOURCE=3 on ia32.
(cherry picked from commit 47d4c563f4)
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1309>
This commit is contained in:
parent
c2916432e4
commit
ad2a2799c0
1 changed files with 1 additions and 1 deletions
|
|
@ -508,7 +508,7 @@ static inline struct evdev_frame *
|
|||
evdev_frame_new(size_t max_size)
|
||||
{
|
||||
struct evdev_frame *frame =
|
||||
zalloc(max_size * sizeof(sizeof(*frame->events)) + sizeof(*frame));
|
||||
zalloc(max_size * sizeof(*frame->events) + sizeof(*frame));
|
||||
|
||||
frame->refcount = 1;
|
||||
frame->max_size = max_size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue