commit 87c10daec10a697c280b9e65162a6bc66b98a972
parent 6c733bdb6f445154fd98ef04eb1a30afc942964a
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Tue, 28 Nov 2017 20:36:24 +0100
[objdump] Fix command line parsing
arg.h already consumed the first element.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/objdump/main.c b/objdump/main.c
@@ -274,10 +274,10 @@ main(int argc, char *argv[])
if (argc == 0)
dump("a.out");
- else while (*++argv) {
+ else while (*argv) {
free(strings);
strings = NULL;
- dump(*argv);
+ dump(*argv++);
}
if (fclose(stdout) == EOF)