diff options
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -26,7 +26,7 @@ int main(int argc, char **argv) { prognamearg = basename(argv[0]); } -#define X(name) if (strcmp(argv[0], #name) == 0) return entry_ ## name (argc, argv); +#define X(name) if (strcmp(prognamearg, #name) == 0) return entry_ ## name (argc, argv); PROGNAMES_XLIST #undef X |