aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_keydef.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-06-09 17:27:05 +0000
committerKalle Wallin <kaw@linux.se>2004-06-09 17:27:05 +0000
commita14b635343ebdcb711885d840687d181ebd2bfbb (patch)
tree84173de0856bb79bb768ea192e47e654af9a4435 /src/screen_keydef.c
parentf205159073955a99df5afcd52af6eca4d057d8e0 (diff)
downloadmpd-a14b635343ebdcb711885d840687d181ebd2bfbb.tar.gz
mpd-a14b635343ebdcb711885d840687d181ebd2bfbb.tar.xz
mpd-a14b635343ebdcb711885d840687d181ebd2bfbb.zip
Updated the get_title callback.
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1421 09075e82-0dd4-0310-85a5-a0d7c8717e4f
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