xserver-multidpi/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 dix: Update some comments to reflect the new non-SIGIO input model 2016-06-08 11:36:32 -04:00
doxygen dmx: Run 'doxygen -u' to upgrade the doxygen config file 2015-12-08 18:20:14 -05:00
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 .gitignore: use common defaults with custom section #24239 2009-11-11 21:40:20 -08:00
dmx_glxvisuals.c glx: Correctly set render type enum 2013-10-24 11:16:30 -07:00
dmx_glxvisuals.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmx-config.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmx.c dmx: #if PANORAMIX → #ifdef PANORAMIX 2018-02-14 14:12:24 -05:00
dmx.h dmx: Remove ShadowFB support 2013-09-10 13:28:23 -04:00
dmxcb.c dmx: remove redundant redeclarations of variables from other headers 2015-02-10 18:14:44 -08:00
dmxcb.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxclient.h Bunch of DMX warning fixes 2014-01-12 10:14:49 -08:00
dmxcmap.c Convert hw/dmx to new *allocarray functions 2015-04-21 16:58:08 -07:00
dmxcmap.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxcursor.c Convert hw/dmx to new *allocarray functions 2015-04-21 16:58:08 -07:00
dmxcursor.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
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 dix: Rename (and retype) PixmapPerDepth[1] to defaultStipple 2016-12-12 14:09:59 -05:00
dmxextension.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxfont.c dix: Switch to the libXfont2 API (v2) 2016-07-18 15:25:59 -04:00
dmxfont.h dmx: remove redundant declaration of dmxFontPrivateIndex from dmxfont.h 2015-02-10 18:14:44 -08:00
dmxgc.c Convert hw/dmx to new *allocarray functions 2015-04-21 16:58:08 -07:00
dmxgc.h dmx: constify GCOps & GCFuncs pointers 2015-02-10 18:14:45 -08:00
dmxgcops.c mi: Drop plane argument from miHandleExposures 2014-10-09 11:14:53 +02:00
dmxgcops.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
dmxinit.c miinitext: Load GLX on the mi path 2018-02-14 17:04:48 -05:00
dmxinit.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxinput.c ddx: add new call to purge input devices that weren't added 2016-10-26 15:35:07 +10:00
dmxinput.h dmx: Remove SIGIO input support here too 2016-06-08 11:36:31 -04:00
dmxlog.c dmx: Annotate dmxlog.c with _X_ATTRIBUTE_PRINTF and _X_NORETURN 2012-05-01 11:36:35 +10:00
dmxlog.h dmx: Annotate dmxlog.c with _X_ATTRIBUTE_PRINTF and _X_NORETURN 2012-05-01 11:36:35 +10:00
dmxpict.c Unvalidated lengths 2017-10-10 23:33:34 +02:00
dmxpict.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
dmxpixmap.c dmx: Fix a read-from-uninitialized warning 2018-04-05 14:18:36 -04:00
dmxpixmap.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxprop.c dmx: Fix some snprintf warnings. 2018-04-05 14:18:31 -04:00
dmxprop.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxscrinit.c dix: Lift DPMS to a screen hook 2017-03-27 15:59:42 -04:00
dmxscrinit.h api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
dmxstat.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
dmxstat.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxsync.c dmx: Fix null pointer dereference 2017-03-27 15:49:30 -04:00
dmxsync.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxvisual.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxvisual.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxwindow.c Convert hw/dmx to new *allocarray functions 2015-04-21 16:58:08 -07:00
dmxwindow.h dix: Drop the third argument from WindowExposuresProcPtr 2014-10-09 11:14:44 +02:00
Makefile.am Revert "dmx: fix linking" 2017-09-18 13:00:54 -04:00
meson.build meson: Install man pages 2018-03-27 10:28:33 -04:00