aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-12-07 20:33:56 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-12-07 20:33:56 +0000
commit4eda35b6360762b4a256c33321a917d4b3a5d625 (patch)
tree7b8e4b6d2bb624bdf23d89229eb398bf6a1077aa /sys/dev/usb
parent183783d34a6b453137f39eac8a7b42b338c9af60 (diff)
downloadsrc-4eda35b6360762b4a256c33321a917d4b3a5d625.tar.gz
src-4eda35b6360762b4a256c33321a917d4b3a5d625.zip
atp: Fix mismatch in array bounds.
Reported by: GCC -Warray-parameter Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D37552
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/input/atp.c3
1 files changed, 2 insertions, 1 deletions
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;