qemu-patch-raspberry4/qga
Jim Meyering 1ab516ed9b qemu-ga: prefer pstrcpy: consistently NUL-terminate ifreq.ifr_name
NUL-termination of the .ifr_name field is not required, but is fine
(and preferable to using strncpy and leaving the reader to wonder),
since the first thing the linux kernel does is to clear the last byte.
Besides, using pstrcpy here makes this setting of ifr_name consistent
with the other code (e.g., net/tap-linux.c) that does the same thing.

Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2012-10-05 07:58:37 -05:00
..
channel-posix.c qemu-ga: Implement alternative to O_ASYNC 2012-05-01 10:49:23 +00:00
channel-win32.c qemu-ga: for w32, fix leaked handle ov.hEvent in ga_channel_write() 2012-03-19 11:31:04 +00:00
channel.h qemu-ga: move channel/transport functionality into wrapper class 2012-02-23 15:40:16 -06:00
commands-posix.c qemu-ga: prefer pstrcpy: consistently NUL-terminate ifreq.ifr_name 2012-10-05 07:58:37 -05:00
commands-win32.c qemu-ga: add guest-fstrim command 2012-06-21 17:59:27 -05:00
commands.c qemu-ga: align versioning with QEMU_VERSION 2012-05-15 09:17:06 -05:00
guest-agent-command-state.c Use glib memory allocation and free functions 2011-08-20 23:01:08 -05:00
guest-agent-core.h qemu-ga: align versioning with QEMU_VERSION 2012-05-15 09:17:06 -05:00
Makefile.objs build: Fix linking failure for qemu-ga 2012-07-29 08:41:53 +00:00
service-win32.c qemu-ga: add Windows service integration 2012-02-23 15:43:50 -06:00
service-win32.h qemu-ga: add Windows service integration 2012-02-23 15:43:50 -06:00