• Adam Jackson's avatar
    xkb: Silence some compiler warnings · 83913de2
    Adam Jackson authored
    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: 's avatarAdam Jackson <ajax@redhat.com>
    Acked-by: 's avatarKeith Packard <keithp@keithp.com>
    83913de2
Name
Last commit
Last update
..
Makefile.am Loading commit data...
README.compiled Loading commit data...
XKBAlloc.c Loading commit data...
XKBGAlloc.c Loading commit data...
XKBMAlloc.c Loading commit data...
XKBMisc.c Loading commit data...
XKM_file_format.txt Loading commit data...
ddxBeep.c Loading commit data...
ddxCtrls.c Loading commit data...
ddxKillSrv.c Loading commit data...
ddxLEDs.c Loading commit data...
ddxLoad.c Loading commit data...
ddxPrivate.c Loading commit data...
ddxVT.c Loading commit data...
maprules.c Loading commit data...
meson.build Loading commit data...
xkb.c Loading commit data...
xkb.h Loading commit data...
xkbAccessX.c Loading commit data...
xkbActions.c Loading commit data...
xkbDflts.h Loading commit data...
xkbEvents.c Loading commit data...
xkbInit.c Loading commit data...
xkbLEDs.c Loading commit data...
xkbPrKeyEv.c Loading commit data...
xkbSwap.c Loading commit data...
xkbUtils.c Loading commit data...
xkbfmisc.c Loading commit data...
xkbgeom.h Loading commit data...
xkbout.c Loading commit data...
xkbtext.c Loading commit data...
xkmread.c Loading commit data...