xserver-multidpi/xkb
Adam Jackson 83913de25d xkb: Silence some compiler warnings
Of the form:

../xkb/XKBGAlloc.c: In function ‘SrvXkbAddGeomKeyAlias’:
../xkb/XKBGAlloc.c:591:13: warning: ‘strncpy’ specified bound 4 equals destination size [-Wstringop-truncation]
             strncpy(alias->real, realStr, XkbKeyNameLength);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is intentional; the code that reads from these fields never reads
more than 4 bytes anyway. Rephrase things in terms of memcpy so that's
clear. Obviously this is awful but in XKB awful is par.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Acked-by: Keith Packard <keithp@keithp.com>
2018-04-05 14:18:47 -04:00
..
ddxBeep.c
ddxCtrls.c
ddxKillSrv.c
ddxLEDs.c
ddxLoad.c xkb: Print the xkbcomp path being executed when we fail to compile. 2017-11-01 10:38:27 +10:00
ddxPrivate.c
ddxVT.c
Makefile.am
maprules.c
meson.build
README.compiled
xkb.c xkb: XkbSetMap on the lastSlave needs to change the master 2018-03-05 13:41:29 -05:00
xkb.h
xkbAccessX.c
xkbActions.c
XKBAlloc.c
xkbDflts.h Use ARRAY_SIZE all over the tree 2017-10-30 13:45:20 -04:00
xkbEvents.c
xkbfmisc.c
XKBGAlloc.c xkb: Silence some compiler warnings 2018-04-05 14:18:47 -04:00
xkbgeom.h
xkbInit.c
xkbLEDs.c
XKBMAlloc.c
XKBMisc.c
xkbout.c
xkbPrKeyEv.c
xkbSwap.c
xkbtext.c
xkbUtils.c xkb: initialize tsyms 2017-11-06 16:49:11 -05:00
XKM_file_format.txt
xkmread.c

The X server uses this directory to store the compiled version of the
current keymap and/or any scratch keymaps used by clients.  The X server
or some other tool might destroy or replace the files in this directory,
so it is not a safe place to store compiled keymaps for long periods of
time.  The default keymap for any server is usually stored in:
     X<num>-default.xkm
where <num> is the display number of the server in question, which makes
it possible for several servers *on the same host* to share the same 
directory.

Unless the X server is modified, sharing this directory between servers on
different hosts could cause problems.