• Ulrich Sibiller's avatar
    xkb: Silence some compiler warnings · 813acdd2
    Ulrich Sibiller authored
      commit 83913de25d35709b3ab7b0ab124b73924145d2dd
      Author: Adam Jackson <ajax@redhat.com>
      Date:   Thu Apr 5 12:59:11 2018 -0400
    
        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: 's avatarAdam Jackson <ajax@redhat.com>
    Acked-by: 's avatarKeith Packard <keithp@keithp.com>
    813acdd2
Name
Last commit
Last update
..
config Loading commit data...
extras Loading commit data...
include Loading commit data...
lib Loading commit data...
programs Loading commit data...
.gitignore Loading commit data...
Imakefile Loading commit data...
Makefile Loading commit data...
x-indent-all.sh Loading commit data...
x-indent.sh Loading commit data...