mbox series

[kvmtool,0/3] Fix more GCC 8 strncpy warnings

Message ID 20190204163458.188070-1-andre.przywara@arm.com (mailing list archive)
Headers show
Series Fix more GCC 8 strncpy warnings | expand

Message

Andre Przywara Feb. 4, 2019, 4:34 p.m. UTC
My build of GCC 8.2 from the FSF vanilla sources triggered more GCC 8
warnings, which are turned into errors and break the build.

Fix them, mostly by using strlcpy() instead of strncpy.

Those three patches go on top of Anisse's series and allow a clean
build with GCC 8.2.0 for me.

Cheers,
Andre.

Andre Przywara (3):
  builtin-run: Replace strncpy calls with strlcpy
  virtio: use strlcpy
  net/dhcp: avoid misleading strncpy

 builtin-run.c  | 4 ++--
 net/uip/dhcp.c | 2 +-
 virtio/net.c   | 5 +++--
 virtio/scsi.c  | 3 ++-
 4 files changed, 8 insertions(+), 6 deletions(-)