Marc-André Lureau 627c865d22 edid: silence a stringop-overflow warning
Simplify the code that doesn't need strncpy() since length of string
is already computed.

/home/elmarco/src/qemu/hw/display/edid-generate.c: In function 'edid_desc_text':
/home/elmarco/src/qemu/hw/display/edid-generate.c:168:5: error: 'strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=]
     strncpy((char *)(desc + 5), text, len);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/elmarco/src/qemu/hw/display/edid-generate.c:164:11: note: length computed here
     len = strlen(text);
           ^~~~~~~~~~~~
cc1: all warnings being treated as errors

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-id: 20181110111623.31356-1-marcandre.lureau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2018-11-12 14:14:18 +01:00
..
2018-09-24 18:49:11 +01:00
2018-11-02 14:03:33 +00:00
2018-10-25 20:17:12 +01:00
2018-10-24 06:44:59 -03:00
2018-10-24 06:44:59 -03:00
2018-11-08 14:42:37 +00:00
2018-11-05 13:24:02 -05:00
2018-11-08 14:42:37 +00:00
2016-01-29 15:07:25 +00:00
2018-08-18 18:01:34 +03:00
2018-11-08 10:01:51 +00:00
2018-11-05 09:55:01 +01:00
2018-10-26 17:17:32 +02:00