summaryrefslogtreecommitdiff
path: root/usr.bin/mg/help.c
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2005-12-14 07:11:45 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2005-12-14 07:11:45 +0000
commit4d38a126630f9e0ed9241f8095164c9708237426 (patch)
tree2ca863629f9756b3fbb20875414c3ee734266ded /usr.bin/mg/help.c
parent0be99845d8d373eb8a1e3054db45fece9e6521b7 (diff)
argh. One problem with fixing a hidden global symbol is that if you miss one,
you get no warning. Fixes an immediate core in describe-bindings.
Diffstat (limited to 'usr.bin/mg/help.c')
-rw-r--r--usr.bin/mg/help.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/help.c b/usr.bin/mg/help.c
index 54bf7aa5317..dce1c76bef0 100644
--- a/usr.bin/mg/help.c
+++ b/usr.bin/mg/help.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: help.c,v 1.30 2005/12/13 07:20:13 kjell Exp $ */
+/* $OpenBSD: help.c,v 1.31 2005/12/14 07:11:44 kjell Exp $ */
/* This file is in the public domain. */
@@ -146,7 +146,7 @@ showall(struct buffer *bp, KEYMAP *map, char *prefix)
if (showall(bp, newmap, keybuf) == FALSE)
return (FALSE);
} else {
- if (addlinef(bp, "%-16s%s", key,
+ if (addlinef(bp, "%-16s%s", keybuf,
function_name(fun)) == FALSE)
return (FALSE);
}