summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-02-24 22:39:57 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-02-24 22:39:57 +0100
commit7b5a9dda568ad518fd7caf76e870906f9a69a36c (patch)
tree6644644b791083e8f513d40a099449dcb1f4f8b7 /playlist.c
parent4001336593622832ceffd1cdef7cd146fc004cd6 (diff)
remove playlist count limitation (bug #1059)
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c6
1 files changed, 1 insertions, 5 deletions
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);