diff options
-rw-r--r-- | qemu-img.c | 2 |
1 files changed, 1 insertions, 1 deletions
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")) { |