diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-06-21 11:01:59 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-06-22 11:30:54 +0200 |
commit | 813acdd2df24a8e3f44152d90a26f1beef11b38c (patch) | |
tree | 8ae129ae995cca0418778b58d5e36d7e954e82ba /nx-X11/programs/Xserver/.gitignore | |
parent | 054e906f6059366150bb7426973542203c8a0e4c (diff) | |
download | nx-libs-813acdd2df24a8e3f44152d90a26f1beef11b38c.tar.gz nx-libs-813acdd2df24a8e3f44152d90a26f1beef11b38c.tar.bz2 nx-libs-813acdd2df24a8e3f44152d90a26f1beef11b38c.zip |
xkb: Silence some compiler warnings
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: Adam Jackson <ajax@redhat.com>
Acked-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'nx-X11/programs/Xserver/.gitignore')
0 files changed, 0 insertions, 0 deletions