aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/unalf.c1
1 files changed, 1 insertions, 0 deletions
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;
}