summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-09 18:14:31 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-02-09 18:14:31 +0000
commit8f9b157e063ee31b656d31d2367c5676ca16665f (patch)
tree2bbcd1abfd5b37743774753866238ab2d4fa318d /qemu-img.c
parentFix displaystate (r6344) regression in blizzard (diff)
downloadqemu-kvm-8f9b157e063ee31b656d31d2367c5676ca16665f.tar.gz
qemu-kvm-8f9b157e063ee31b656d31d2367c5676ca16665f.tar.bz2
qemu-kvm-8f9b157e063ee31b656d31d2367c5676ca16665f.zip
Make qemu-img argument handling POSIX compliant
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6578 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'qemu-img.c')
-rw-r--r--qemu-img.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-img.c b/qemu-img.c
index 0bcbada56..d83ffe3ee 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")) {