summaryrefslogtreecommitdiff
path: root/src/stream.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-08 21:14:43 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-08 21:14:43 -0400
commit431c950c75c2046864abfde0175219d13ce1fb84 (patch)
treef8e681626f26530637e9a9dcb02e48ac289b22b2 /src/stream.cc
parent63dffb843ba26ef6a8ea7552abefe0e1f749359c (diff)
downloadfork-ledger-431c950c75c2046864abfde0175219d13ce1fb84.tar.gz
fork-ledger-431c950c75c2046864abfde0175219d13ce1fb84.tar.bz2
fork-ledger-431c950c75c2046864abfde0175219d13ce1fb84.zip
Use path.filename() instead of the deprecated path.leaf().
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);