aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_keydef.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen_keydef.c')
-rw-r--r--src/screen_keydef.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/screen_keydef.c b/src/screen_keydef.c
index 16311af56..2dda43db9 100644
--- a/src/screen_keydef.c
+++ b/src/screen_keydef.c
@@ -1,5 +1,7 @@
/*
- * (c) 2004 by Kalle Wallin (kaw@linux.se)
+ * $Id$
+ *
+ * (c) 2004 by Kalle Wallin <kaw@linux.se>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -271,17 +273,13 @@ keydef_close(void)
}
static char *
-keydef_title(void)
+keydef_title(char *str, size_t size)
{
- static char buf[BUFSIZE];
-
if( subcmd<0 )
return _("Edit key bindings");
- snprintf(buf, BUFSIZE,
- _("Edit keys for %s"),
- cmds[subcmd].name);
- return buf;
+ snprintf(str, size, _("Edit keys for %s"), cmds[subcmd].name);
+ return str;
}
static void