xserver/hw/kdrive/src
Egbert Eich 68168c7646 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>
(cherry picked from commit 44d0fd435a)
2015-12-09 10:45:49 -05:00
..
fourcc.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
kcmap.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
kdrive.c kdrive: Remove vestigial reference to fbInitValidateTree 2014-10-08 16:01:35 +02:00
kdrive.h exa, kdrive: Remove redundant BitsPerPixel macros 2014-10-08 10:10:39 +02:00
kinfo.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
kinput.c kdrive/UnregisterFd: Fix off by one 2015-12-09 10:45:49 -05:00
kmode.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
kshadow.c Convert hw/kdrive to new *allocarray functions 2015-04-21 16:58:08 -07:00
kxv.c Convert hw/kdrive to new *allocarray functions 2015-04-21 16:58:08 -07:00
kxv.h kdrive: Remove a dead struct. 2014-08-07 12:39:53 -07:00
Makefile.am Build fbcmap_mi.c once, rather than once for each DDX 2014-03-27 14:34:06 +00:00