summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7b4a9f2)
raw | patch | inline | side by side (parent: 7b4a9f2)
author | Max Kellermann <max@duempel.org> | |
Fri, 25 Dec 2009 11:12:33 +0000 (12:12 +0100) | ||
committer | Max Kellermann <max@duempel.org> | |
Fri, 25 Dec 2009 11:32:11 +0000 (12:32 +0100) |
This fixes the "jump" regression.
src/screen_artist.c | patch | blob | history |
diff --git a/src/screen_artist.c b/src/screen_artist.c
index e4f301aa7dfc934204f5dc367e4ab03c45fb9796..450914b056e3c01f97addbb0f6a105f05355f8c3 100644 (file)
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
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;