diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-11-18 04:46:11 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-11-18 04:46:11 -0500 |
| commit | 706e90b41a193442e491d77929e869ed0e53f057 (patch) | |
| tree | 1215893268a337b17d40d9d6181829fbc54c7cd9 /src | |
| parent | e8ac422bc8b03c9b2c3735578aab7049092c7c5a (diff) | |
| download | unalf-706e90b41a193442e491d77929e869ed0e53f057.tar.gz | |
Fix set_self() for windows.
Diffstat (limited to 'src')
| -rw-r--r-- | src/unalf.c | 1 |
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; } |
