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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

-- 
2.17.1




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux