summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 8cde9b8..1148495 100644
--- a/main.c
+++ b/main.c
@@ -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