From 45eebeaa3f04c36a42644f79ec21e0be40530b61 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 19 Sep 2016 23:08:25 -0400 Subject: [PATCH] lx_dump: modules are indexed from 1, not zero. --- lx_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lx_dump.c b/lx_dump.c index 9074b2b..3d9f20c 100644 --- a/lx_dump.c +++ b/lx_dump.c @@ -441,7 +441,7 @@ static void parseExe(const char *exefname, uint8 *exe, uint32 exelen) memcpy(name, import_modules_table, namelen); import_modules_table += namelen; name[namelen] = '\0'; - printf("%u: %s\n", (unsigned int) i, name); + printf("%u: %s\n", (unsigned int) i+1, name); } #if 0