-
Arkadiusz Hiler authored
drm_i915_perf_oa_config defines uuid as char[36], which does not leave space for the terminating NULL. Newer GCC and the fortification options leave us with the following complaint: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying 36 bytes from a string of the same length [-Wstringop-truncation] Let's switch to memcpy() which does not care about the terminating NULL. Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Simon Ser <simon.ser@intel.com>
9f43c6d0