Skip to content

Commit

Permalink
Merge pull request DavidGriffith#20 from fornwall/master
Browse files Browse the repository at this point in the history
Replace rindex() with strrchr()
  • Loading branch information
DavidGriffith committed Aug 30, 2015
2 parents 6a6c1ac + 17d0e44 commit 610a1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/curses/ux_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ void os_process_arguments (int argc, char *argv[])
f_setup.story_name = strdup(basename(argv[optind]));

/* Now strip off the extension. */
p = rindex(f_setup.story_name, '.');
p = strrchr(f_setup.story_name, '.');
if ((p != NULL) &&
((strcmp(p,EXT_BLORB2) == 0) ||
(strcmp(p,EXT_BLORB3) == 0) ||
Expand Down

0 comments on commit 610a1cf

Please sign in to comment.