Michael S. Tsirkin 43e229a52b acpi: use constants as strncpy limit
gcc is not smart enough to figure out length was validated before use as
strncpy limit, resulting in this warning:

inlined from ‘virt_set_oem_table_id’ at ../../hw/arm/virt.c:2197:5:
/usr/include/aarch64-linux-gnu/bits/string_fortified.h:106:10: error:
‘__builtin_strncpy’ specified bound depends on the length of the
source argument [-Werror=stringop-overflow=]

Simplify things by using a constant limit instead.

Fixes: 97fc5d507fca ("acpi: Permit OEM ID and OEM table ID fields to be changed")
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2021-02-05 08:52:59 -05:00
..
2020-08-28 15:14:40 +01:00
2020-12-10 12:11:03 +01:00
2020-12-10 12:15:07 -05:00
2020-12-15 12:51:55 -05:00
2020-12-10 12:15:04 -05:00
2020-12-10 12:15:18 -05:00
2020-12-08 13:48:57 -05:00
2020-10-27 11:10:44 +00:00
2021-02-05 08:52:59 -05:00