mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-03 01:20:21 +00:00
12 lines
545 B
Diff
12 lines
545 B
Diff
--- a/src/timg.cc
|
|
+++ b/src/timg.cc
|
|
@@ -167,7 +167,7 @@ static int usage(const char *progname, ExitCode exit_code, int width,
|
|
#else
|
|
static constexpr char kFileType[] = "image";
|
|
#endif
|
|
- const char *after_slash_progname = rindex(progname, '/');
|
|
+ const char *after_slash_progname = strrchr(progname, '/');
|
|
progname = after_slash_progname ? after_slash_progname + 1 : progname;
|
|
const char *const default_title = getenv("TIMG_DEFAULT_TITLE");
|
|
fprintf(stderr, "usage: %s [options] <%s> [<%s>...]\n", progname, kFileType,
|