xserver/hw/dmx
Adam Jackson d13cd3862e dmx: Silence a string truncation warning.
../hw/dmx/config/dmxparse.c: In function ‘dmxConfigCreateOption’:
../hw/dmx/config/dmxparse.c:385:13: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
             strncpy(option->string + offset, p->string, len);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../hw/dmx/config/dmxparse.c:383:23: note: length computed here
             int len = strlen(p->string);
                       ^~~~~~~~~~~~~~~~~

The thing it's warning about is intentional, the surrounding code does
its own nul-termination. Make that obvious by using memcpy instead.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Acked-by: Keith Packard <keithp@keithp.com>
2018-04-05 14:18:44 -04:00
..
config dmx: Silence a string truncation warning. 2018-04-05 14:18:44 -04:00
doc
doxygen
examples meson: Install the dmx utilities 2018-03-27 10:28:33 -04:00
glxProxy glx: Drop references to <GL/internal/glcore.h> 2017-11-14 16:18:47 -05:00
input dmx: Clean up some argument parsing code 2018-04-05 14:18:41 -04:00
man man: s/__/@/g 2018-03-27 10:13:17 -04:00
.gitignore
Makefile.am Revert "dmx: fix linking" 2017-09-18 13:00:54 -04:00
dmx-config.h
dmx.c dmx: #if PANORAMIX → #ifdef PANORAMIX 2018-02-14 14:12:24 -05:00
dmx.h
dmx_glxvisuals.c
dmx_glxvisuals.h
dmxcb.c
dmxcb.h
dmxclient.h
dmxcmap.c
dmxcmap.h
dmxcursor.c
dmxcursor.h
dmxdpms.c dix: Lift DPMS to a screen hook 2017-03-27 15:59:42 -04:00
dmxdpms.h dix: Lift DPMS to a screen hook 2017-03-27 15:59:42 -04:00
dmxextension.c
dmxextension.h
dmxfont.c
dmxfont.h
dmxgc.c
dmxgc.h
dmxgcops.c
dmxgcops.h
dmxinit.c miinitext: Load GLX on the mi path 2018-02-14 17:04:48 -05:00
dmxinit.h
dmxinput.c
dmxinput.h
dmxlog.c
dmxlog.h
dmxpict.c Unvalidated lengths 2017-10-10 23:33:34 +02:00
dmxpict.h
dmxpixmap.c dmx: Fix a read-from-uninitialized warning 2018-04-05 14:18:36 -04:00
dmxpixmap.h
dmxprop.c dmx: Fix some snprintf warnings. 2018-04-05 14:18:31 -04:00
dmxprop.h
dmxscrinit.c dix: Lift DPMS to a screen hook 2017-03-27 15:59:42 -04:00
dmxscrinit.h
dmxstat.c
dmxstat.h
dmxsync.c
dmxsync.h
dmxvisual.c
dmxvisual.h
dmxwindow.c
dmxwindow.h
meson.build meson: Install man pages 2018-03-27 10:28:33 -04:00