Files
xserver_xsdl/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
..
2018-03-27 10:28:33 -04:00
2018-03-27 10:13:17 -04:00
2018-02-14 14:12:24 -05:00
2013-09-10 13:28:23 -04:00
2012-03-21 13:54:42 -07:00
2014-01-12 10:14:49 -08:00
2012-03-21 13:54:42 -07:00
2017-03-27 15:59:42 -04:00
2017-03-27 15:59:42 -04:00
2015-02-10 18:14:45 -08:00
2018-02-14 17:04:48 -05:00
2012-03-21 13:54:42 -07:00
2017-10-10 23:33:34 +02:00
2014-11-12 10:25:00 +10:00
2018-04-05 14:18:31 -04:00
2012-03-21 13:54:42 -07:00
2017-03-27 15:59:42 -04:00
2014-01-12 10:24:11 -08:00
2012-03-21 13:54:42 -07:00
2017-03-27 15:49:30 -04:00
2012-03-21 13:54:42 -07:00
2017-09-18 13:00:54 -04:00
2018-03-27 10:28:33 -04:00