diff --git a/src/launch-appliance.c b/src/launch-appliance.c index 95cf1319b..8f5611ea4 100644 --- a/src/launch-appliance.c +++ b/src/launch-appliance.c @@ -771,7 +771,7 @@ read_all (guestfs_h *g, void *retv, const char *buf, size_t len) { char **ret = retv; - *ret = safe_memdup (g, buf, len); + *ret = safe_strndup (g, buf, len); } /* Test if option is supported by qemu command line (just by grepping