From 706e90b41a193442e491d77929e869ed0e53f057 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 18 Nov 2025 04:46:11 -0500 Subject: Fix set_self() for windows. --- src/unalf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/unalf.c b/src/unalf.c index 6bfd94d..7b29240 100644 --- a/src/unalf.c +++ b/src/unalf.c @@ -20,6 +20,7 @@ static void set_self(char *argv0) { self = argv0; p = strrchr(self, '/'); + if(!p) p = strrchr(self, '\\'); // windows exe needs this if(p) self = p + 1; } -- cgit v1.2.3