I hit two strncpy(3) compiler warnings with gcc 9.2 and sanitizers enabled
recently. Use QEMU's pstrcpy() function instead - it always NUL-terminates and
therefore eliminates the concerns behind this compiler warning.
Stefan Hajnoczi (2):
migration: avoid suspicious strncpy() use
hw/rdma: avoid suspicious strncpy() use
hw/rdma/vmw/pvrdma_dev_ring.c | 4 ++--
migration/global_state.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
--
2.24.1