libfreerdp-utils/args: fix wrong argument index for plugin name.
authorVic Lee <llyzs@163.com>
Tue, 2 Aug 2011 05:15:25 +0000 (13:15 +0800)
committerVic Lee <llyzs@163.com>
Tue, 2 Aug 2011 05:15:25 +0000 (13:15 +0800)
libfreerdp-utils/args.c

index b76f4c0..707e158 100644 (file)
@@ -271,8 +271,8 @@ int freerdp_parse_args(rdpSettings* settings, int argc, char** argv,
                }
                else if (strcmp("--plugin", argv[index]) == 0)
                {
-                       t = index;
                        index++;
+                       t = index;
                        if (index == argc)
                        {
                                printf("missing plugin name\n");