The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=4eda35b6360762b4a256c33321a917d4b3a5d625

commit 4eda35b6360762b4a256c33321a917d4b3a5d625
Author:     John Baldwin <[email protected]>
AuthorDate: 2022-12-07 20:33:56 +0000
Commit:     John Baldwin <[email protected]>
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;

Reply via email to