Patch 1/3: move v9fs_string_free() to below "err_out:"
Patch 2/3: use snprintf() instead of sprintf()
(which will be replaced of by Path 3/3)
Patch 3/3: use g_strdup_printf() instead of PATH_MAX limitation
Signed-off-by: Chen Gang <[email protected]>
---
hw/9pfs/cofs.c | 15 ++-
hw/9pfs/virtio-9p-handle.c | 9 +-
hw/9pfs/virtio-9p-local.c | 286 +++++++++++++++++++++++++++--------------
hw/9pfs/virtio-9p-posix-acl.c | 52 ++++++--
hw/9pfs/virtio-9p-xattr-user.c | 27 +++-
hw/9pfs/virtio-9p-xattr.c | 9 +-
hw/9pfs/virtio-9p-xattr.h | 27 +++-
hw/9pfs/virtio-9p.h | 6 +-
8 files changed, 293 insertions(+), 138 deletions(-)