Skip to content

Commit

Permalink
main: use strchrr instead of rindex
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Gatto <[email protected]>
  • Loading branch information
outscale-mgo committed Feb 2, 2023
1 parent f8396cc commit 1f77882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main_tpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ int main(int ac, char **av)
char *help_appent = getenv("COGNAC_HELP_APPEND");
unsigned int flag = 0;
unsigned int program_flag = 0;
char *program_name = rindex(av[0], '/');
char *program_name = strrchr(av[0], '/');
char *profile = NULL;
int ret = 1;

Expand Down

0 comments on commit 1f77882

Please sign in to comment.