From 7b5a9dda568ad518fd7caf76e870906f9a69a36c Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 24 Feb 2014 22:39:57 +0100 Subject: remove playlist count limitation (bug #1059) --- playlist.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'playlist.c') diff --git a/playlist.c b/playlist.c index 62b97d30..36b51690 100644 --- a/playlist.c +++ b/playlist.c @@ -263,7 +263,7 @@ plt_gen_conf (void) { playlist_t *p = playlists_head; for (i = 0; i < cnt; i++, p = p->next) { char s[100]; - snprintf (s, sizeof (s), "playlist.tab.%02d", i); + snprintf (s, sizeof (s), "playlist.tab.%05d", i); conf_set_str (s, p->title); snprintf (s, sizeof (s), "playlist.cursor.%d", i); conf_set_int (s, p->current_row[PL_MAIN]); @@ -377,10 +377,6 @@ int plt_add (int before, const char *title) { assert (before >= 0); trace ("plt_add\n"); - if (plt_get_count () >= 100) { - fprintf (stderr, "can't create more than 100 playlists. sorry.\n"); - return -1; - } playlist_t *plt = plt_alloc (title); plt_modified (plt); -- cgit v1.2.3