From: "Dr. David Alan Gilbert" <dgilb...@redhat.com> Move the reading of length first encoded strings into it's own function.
v2: Terminate return buffer at read length rather than expected length Dr. David Alan Gilbert (1): Add qemu_get_counted_string to read a string prefixed by a count byte arch_init.c | 9 +++++---- include/migration/qemu-file.h | 3 +++ migration/qemu-file.c | 17 +++++++++++++++++ savevm.c | 11 ++++++----- 4 files changed, 31 insertions(+), 9 deletions(-) -- 2.4.1