Commit 8f9b157e063ee31b656d31d2367c5676ca16665f

Authored by aurel32
1 parent 09218951

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
Showing 1 changed file with 1 additions and 1 deletions
qemu-img.c
... ... @@ -865,7 +865,7 @@ int main(int argc, char **argv)
865 865 if (argc < 2)
866 866 help();
867 867 cmd = argv[1];
868   - optind++;
  868 + argc--; argv++;
869 869 if (!strcmp(cmd, "create")) {
870 870 img_create(argc, argv);
871 871 } else if (!strcmp(cmd, "commit")) {
... ...