Use path.filename() instead of the deprecated path.leaf().

This commit is contained in:
John Wiegley 2009-02-08 21:14:43 -04:00
parent 63dffb843b
commit 431c950c75

View file

@ -87,7 +87,7 @@ namespace {
// Find command name: its the substring starting right of the
// rightmost '/' character in the pager pathname. See manpage for
// strrchr.
path basename(pager_path.leaf());
path basename(pager_path.filename());
execlp(pager_path.string().c_str(), basename.string().c_str(),
(char *)0);