mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-09 21:12:07 +03:00
* popthelp.c (showHelpIntro): The basename of argv[0] starts after
the last slash in argv[0], not after the first.
This commit is contained in:
parent
8d4cf30242
commit
d3204db4e0
@ -1,3 +1,10 @@
|
|||||||
|
2004-11-11 Roland Illig <roland.illig@gmx.de>
|
||||||
|
|
||||||
|
* popthelp.c (showHelpIntro): The basename of argv[0] starts after
|
||||||
|
the last slash in argv[0], not after the first.
|
||||||
|
|
||||||
|
From Egmont Koblinger <egmont * uhulinux hu>
|
||||||
|
|
||||||
2004-11-10 Roland Illig <roland.illig@gmx.de>
|
2004-11-10 Roland Illig <roland.illig@gmx.de>
|
||||||
|
|
||||||
* Makefile.am: Excluded pipethough.{c,h} from the distribution
|
* Makefile.am: Excluded pipethough.{c,h} from the distribution
|
||||||
|
@ -179,7 +179,7 @@ static int showHelpIntro(poptContext con, FILE * f) {
|
|||||||
fprintf(f, _("Usage:"));
|
fprintf(f, _("Usage:"));
|
||||||
if (!(con->flags & POPT_CONTEXT_KEEP_FIRST)) {
|
if (!(con->flags & POPT_CONTEXT_KEEP_FIRST)) {
|
||||||
fn = con->optionStack->argv[0];
|
fn = con->optionStack->argv[0];
|
||||||
if (strchr(fn, '/')) fn = strchr(fn, '/') + 1;
|
if (strrchr(fn, '/')) fn = strrchr(fn, '/') + 1;
|
||||||
fprintf(f, " %s", fn);
|
fprintf(f, " %s", fn);
|
||||||
len += strlen(fn) + 1;
|
len += strlen(fn) + 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user