From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv0R5-0004pF-DG for qemu-devel@nongnu.org; Wed, 20 May 2015 05:37:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yv0R2-0007TH-7c for qemu-devel@nongnu.org; Wed, 20 May 2015 05:37:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv0R1-0007S9-W7 for qemu-devel@nongnu.org; Wed, 20 May 2015 05:37:08 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t4K9b7dS032441 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 20 May 2015 05:37:07 -0400 From: "Dr. David Alan Gilbert (git)" Date: Wed, 20 May 2015 10:37:04 +0100 Message-Id: <1432114625-23599-1-git-send-email-dgilbert@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/1] Add qemu_get_counted_string List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: amit.shah@redhat.com, quintela@redhat.com From: "Dr. David Alan Gilbert" 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