xserver/hw/kdrive
Egbert Eich 44d0fd435a kdrive/UnregisterFd: Fix off by one
The number of FDs has been decremented already, therefore the
number contained the index of the top one that is to me moved down.

This problem was introduced by:
  commit 1110b71e36
  Author: Chris Clayton <chris2553@googlemail.com>

    kdrive: fix build error on gcc 4.8 for out-of-bounds array access

The reason for the warning was likely a confused compiler.
Hoping to reduce the confusion by moving the decrement behind the end
if the copy loop.

Signed-off-by: Egbert Eich <eich@suse.de>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2015-11-30 11:48:08 -05:00
..
ephyr kdrive: Delete unused TOUCHSCREEN define. 2015-10-06 10:43:05 -04:00
fake kdrive: Delete unused TOUCHSCREEN define. 2015-10-06 10:43:05 -04:00
fbdev kdrive: Delete unused TOUCHSCREEN define. 2015-10-06 10:43:05 -04:00
linux kdrive: Ignore failure to chown console tty to current user 2014-04-18 16:30:17 -07:00
src kdrive/UnregisterFd: Fix off by one 2015-11-30 11:48:08 -05:00
Makefile.am Catch errors in recursive relink targets 2010-03-22 00:45:57 -05:00
Xkdrive.man kdrive: Remove some dead bits of the man page 2014-07-29 09:51:40 -04:00