xserver-multidpi/hw/dmx/config
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
..
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
Canvas.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
Canvas.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
CanvasP.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxcompat.c dmx: Silence unused variable warning in dmxcompat 2015-12-08 18:20:13 -05:00
dmxcompat.h Death to RCS tags. 2007-06-29 14:06:52 -04:00
dmxconfig.c dmx: Silence lex/yacc-related config parser warnings 2015-12-08 18:20:00 -05:00
dmxconfig.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxparse.c dmx: Silence a string truncation warning. 2018-04-05 14:18:44 -04:00
dmxparse.h dmx: Silence lex/yacc-related config parser warnings 2015-12-08 18:20:00 -05:00
dmxprint.c dmx: move format strings inline so gcc can check 2015-02-10 18:14:44 -08:00
dmxprint.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxtodmx.c dmx: Silence lex/yacc-related config parser warnings 2015-12-08 18:20:00 -05:00
Makefile.am Move to autoconf standard function name checks & defines 2011-12-05 14:32:45 -08:00
meson.build meson: Fix linking the dmx utilities 2017-04-27 15:19:31 -04:00
parser.y dmx: Silence lex/yacc-related config parser warnings 2015-12-08 18:20:00 -05:00
scanner.l dmx: Silence lex/yacc-related config parser warnings 2015-12-08 18:20:00 -05:00
test-a.in Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-a.out Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-b.in Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-b.out Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-c.in Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-c.out Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-d.in Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-d.out Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-e.in Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-e.out Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-f.in Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-f.out Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-g.in Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-g.out Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-h.in Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-h.out Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-i.in Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-i.out Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-j.in Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-j.out Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-k.in Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-k.out Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-l.in Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
test-l.out Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
TODO Add Distributed Multihead X (DMX) support 2004-06-30 20:06:56 +00:00
vdltodmx.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
xdmxconfig.c dmx: Silence lex/yacc-related config parser warnings 2015-12-08 18:20:00 -05:00