aboutsummaryrefslogtreecommitdiff
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 3feaca0c..0820e87b 100644
--- a/main.c
+++ b/main.c
@@ -148,7 +148,7 @@ int main(int argc, char *argv[])
char *name;
// Trim path off of command name
- name = rindex(argv[0], '/');
+ name = strrchr(argv[0], '/');
if (!name) name=argv[0];
else name++;
argv[0] = name;