diff options
author | Kalle Wallin <kaw@linux.se> | 2004-06-09 17:27:05 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-06-09 17:27:05 +0000 |
commit | a14b635343ebdcb711885d840687d181ebd2bfbb (patch) | |
tree | 84173de0856bb79bb768ea192e47e654af9a4435 /src/screen_file.c | |
parent | f205159073955a99df5afcd52af6eca4d057d8e0 (diff) | |
download | mpd-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_file.c')
-rw-r--r-- | src/screen_file.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/screen_file.c b/src/screen_file.c index f86e8df95..8b7577fdf 100644 --- a/src/screen_file.c +++ b/src/screen_file.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 @@ -360,16 +362,15 @@ file_close(void) } static char * -file_title(void) +file_title(char *str, size_t size) { - static char buf[TITLESIZE]; char *tmp; tmp = utf8_to_locale(basename(mpc->cwd)); - snprintf(buf, TITLESIZE, _("Browse: %s"), tmp); + snprintf(str, size, _("Browse: %s"), tmp); g_free(tmp); - return buf; + return str; } static void |