From 8f9b157e063ee31b656d31d2367c5676ca16665f Mon Sep 17 00:00:00 2001 From: aurel32 Date: Mon, 9 Feb 2009 18:14:31 +0000 Subject: Make qemu-img argument handling POSIX compliant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hervé Poussineau Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6578 c046a42c-6fe2-441c-8c8c-71466251a162 --- qemu-img.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qemu-img.c') diff --git a/qemu-img.c b/qemu-img.c index 0bcbada564..d83ffe3ee9 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -865,7 +865,7 @@ int main(int argc, char **argv) if (argc < 2) help(); cmd = argv[1]; - optind++; + argc--; argv++; if (!strcmp(cmd, "create")) { img_create(argc, argv); } else if (!strcmp(cmd, "commit")) { -- cgit v1.2.3