summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <t.j.smeding@uu.nl>2024-07-13 23:03:17 +0200
committerTom Smeding <t.j.smeding@uu.nl>2024-07-13 23:03:17 +0200
commitea211a7b2d2deec4f5b8451782e930caeb51c295 (patch)
treeedc3910f32019a0b5960e70766c70db82dcb4367
parent069a6aaa4811a51d547062113a82fdda17edfd6d (diff)
Fix hulpmiddelselectie wanneer symbolisch gelinkt
-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