Added SILC Thread Queue API
[crypto.git] / apps / irssi / src / lib-popt / popthelp.c
index 243f868e4bafe7024def119f383f86da6fc5d96c..15ed2d9539faf2dba1b898151e87caca1ef503e0 100644 (file)
@@ -175,7 +175,7 @@ static int showHelpIntro(poptContext con, FILE * f) {
     fprintf(f, POPT_("Usage:"));
     if (!(con->flags & POPT_CONTEXT_KEEP_FIRST)) {
        fn = con->optionStack->argv[0];
-       if (strchr(fn, '/')) fn = strchr(fn, '/') + 1;
+       if (strrchr(fn, '/')) fn = strrchr(fn, '/') + 1;
        fprintf(f, " %s", fn);
        len += strlen(fn) + 1;
     }