git: 4eda35b63607 - main - atp: Fix mismatch in array bounds.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Dec 2022 20:34:20 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=4eda35b6360762b4a256c33321a917d4b3a5d625
commit 4eda35b6360762b4a256c33321a917d4b3a5d625
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-12-07 20:33:56 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-12-07 20:33:56 +0000
atp: Fix mismatch in array bounds.
Reported by: GCC -Warray-parameter
Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D37552
---
sys/dev/usb/input/atp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sys/dev/usb/input/atp.c b/sys/dev/usb/input/atp.c
index 206075694f92..fad88b0dd5e5 100644
--- a/sys/dev/usb/input/atp.c
+++ b/sys/dev/usb/input/atp.c
@@ -1635,7 +1635,8 @@ fg_update_strokes(struct atp_softc *sc, fg_pspan *pspans_x,
* Return true if any movement is detected.
*/
static boolean_t
-wsp_update_strokes(struct atp_softc *sc, wsp_finger_t *fingers, u_int n_fingers)
+wsp_update_strokes(struct atp_softc *sc, wsp_finger_t fingers[WSP_MAX_FINGERS],
+ u_int n_fingers)
{
boolean_t movement = false;
atp_stroke_t *strokep_next;