v3 of: https://lists.nongnu.org/archive/html/qemu-devel/2020-06/msg06913.html
diff to v2: - don't leak @hostname in util/oslib-posix.c:qemu_get_host_name() - document why we are allocating one byte more than needed - switch to g_new0() from g_malloc0(). Michal Privoznik (2): util: Introduce qemu_get_host_name() qga: Use qemu_get_host_name() instead of g_get_host_name() include/qemu/osdep.h | 10 ++++++++++ qga/commands.c | 17 +++++++++++++---- util/oslib-posix.c | 35 +++++++++++++++++++++++++++++++++++ util/oslib-win32.c | 13 +++++++++++++ 4 files changed, 71 insertions(+), 4 deletions(-) -- 2.26.2