summaryrefslogtreecommitdiff
path: root/net/quagga/files/patch-vtysh.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/quagga/files/patch-vtysh.c')
-rw-r--r--net/quagga/files/patch-vtysh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/quagga/files/patch-vtysh.c b/net/quagga/files/patch-vtysh.c
index e5779a1de11d..2e0b1b6cd4cb 100644
--- a/net/quagga/files/patch-vtysh.c
+++ b/net/quagga/files/patch-vtysh.c
@@ -19,7 +19,7 @@
+ return;
+
+ s = strrchr(vtysh_pager_name, '/');
-+ s = (s == NULL ? vtysh_pager_name : s++);
++ s = (s == NULL ? vtysh_pager_name : s + 1);
+ if (strcmp(s, "more") != 0 && strcmp(s, "less") != 0)
+ return;
+