summaryrefslogtreecommitdiff
path: root/src/stream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream.cc')
-rw-r--r--src/stream.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream.cc b/src/stream.cc
index 403e579e..a9ecfe6a 100644
--- a/src/stream.cc
+++ b/src/stream.cc
@@ -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);