Author: grembo (ports committer)
Date: Tue Aug  8 13:27:32 2017
New Revision: 322253
URL: https://svnweb.freebsd.org/changeset/base/322253

Log:
  Fix typo in cyapa out of bounds check.
  
  PR:           217783
  Submitted by: razmys...@viva64.com
  MFC after:    1 week

Modified:
  head/sys/dev/cyapa/cyapa.c

Modified: head/sys/dev/cyapa/cyapa.c
==============================================================================
--- head/sys/dev/cyapa/cyapa.c  Tue Aug  8 12:18:11 2017        (r322252)
+++ head/sys/dev/cyapa/cyapa.c  Tue Aug  8 13:27:32 2017        (r322253)
@@ -1455,7 +1455,7 @@ cyapa_raw_input(struct cyapa_softc *sc, struct cyapa_r
                                sc->delta_x = sc->cap_resx;
                        if (sc->delta_x < -sc->cap_resx)
                                sc->delta_x = -sc->cap_resx;
-                       if (sc->delta_y > sc->cap_resx)
+                       if (sc->delta_y > sc->cap_resy)
                                sc->delta_y = sc->cap_resy;
                        if (sc->delta_y < -sc->cap_resy)
                                sc->delta_y = -sc->cap_resy;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to