From a14b635343ebdcb711885d840687d181ebd2bfbb Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Wed, 9 Jun 2004 17:27:05 +0000 Subject: Updated the get_title callback. git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1421 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/screen_file.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/screen_file.c') 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 * * 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 -- cgit v1.2.3