ref: a702a8bbbb8f268715e71ef4010eeb383c39e059
parent: a78aa8e9102b99401b40601d355e13c10e2e64e7
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Nov 28 15:36:24 EST 2017
[objdump] Fix command line parsing arg.h already consumed the first element.
--- a/objdump/main.c
+++ b/objdump/main.c
@@ -274,10 +274,10 @@
if (argc == 0)
dump("a.out");
- else while (*++argv) {
+ else while (*argv) {
free(strings);
strings = NULL;
- dump(*argv);
+ dump(*argv++);
}
if (fclose(stdout) == EOF)