From 431c950c75c2046864abfde0175219d13ce1fb84 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 8 Feb 2009 21:14:43 -0400 Subject: Use path.filename() instead of the deprecated path.leaf(). --- src/stream.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stream.cc') 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); -- cgit v1.2.3