diff --git a/src/screen_artist.c b/src/screen_artist.c
index e4f301aa7dfc934204f5dc367e4ab03c45fb9796..14d37a5a5a2e1fbfa9fddd2719478e44a7da9689 100644 (file)
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
/* ncmpc (Ncurses MPD Client)
- * (c) 2004-2009 The Music Player Daemon Project
+ * (c) 2004-2010 The Music Player Daemon Project
* Project homepage: http://musicpd.org
* This program is free software; you can redistribute it and/or modify
if (mode == LIST_ALBUMS) {
if (idx == 0)
- return "[..]";
- else if (idx == list->len + 1) {
- g_snprintf(buf, BUFSIZE, "[%s]", _("All tracks"));
- return buf;
- }
+ return "..";
+ else if (idx == list->len + 1)
+ return _("All tracks");
--idx;
}
assert(str_utf8 != NULL);
str = utf8_to_locale(str_utf8);
- g_snprintf(buf, BUFSIZE, "[%s]", str);
+ g_strlcpy(buf, str, sizeof(buf));
g_free(str);
return buf;