Skip to content

Commit

Permalink
fix -N name
Browse files Browse the repository at this point in the history
  • Loading branch information
phillbush committed Apr 5, 2023
1 parent 2936002 commit 4d4ab33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xfiles.c
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ main(int argc, char *argv[])
home = getenv("HOME");
name = getenv("RESOURCES_NAME");
if (argv[0] != NULL && argv[0][0] != '\0') {
if ((name = strchr(argv[0], '/')) != NULL) {
if ((name = strrchr(argv[0], '/')) != NULL) {
name++;
} else {
name = argv[0];
Expand Down

0 comments on commit 4d4ab33

Please sign in to comment.