summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/playlist.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 4c21ea41f6..b56959fefc 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -1205,7 +1205,7 @@ static int get_track_filename(struct playlist_info* playlist, int index, int see
1205 { 1205 {
1206 char *namebuf = chunk_get_data(&playlist->name_chunk_buffer, seek); 1206 char *namebuf = chunk_get_data(&playlist->name_chunk_buffer, seek);
1207 strmemccpy(tmp_buf, namebuf, sizeof(tmp_buf)); 1207 strmemccpy(tmp_buf, namebuf, sizeof(tmp_buf));
1208 chunk_put_data(&playlist->name_chunk_buffer, seek); 1208 chunk_put_data(&playlist->name_chunk_buffer, namebuf, seek);
1209 NOTEF("%s [in Ram]: 0x%x %s", __func__, seek, tmp_buf); 1209 NOTEF("%s [in Ram]: 0x%x %s", __func__, seek, tmp_buf);
1210 } 1210 }
1211 else if (max < 0) 1211 else if (max < 0)
@@ -2145,11 +2145,9 @@ int playlist_add(const char *filename)
2145 2145
2146 char *namebuf = (char*)chunk_get_data(&playlist->name_chunk_buffer, indice); 2146 char *namebuf = (char*)chunk_get_data(&playlist->name_chunk_buffer, indice);
2147 strcpy(namebuf, filename); 2147 strcpy(namebuf, filename);
2148 namebuf[len] = '\0';
2149 chunk_put_data(&playlist->name_chunk_buffer, namebuf, indice);
2148 2150
2149 namebuf += len;
2150 namebuf[0] = '\0';
2151
2152 chunk_put_data(&playlist->name_chunk_buffer, indice);
2153 playlist->indices[playlist->amount] = indice; 2151 playlist->indices[playlist->amount] = indice;
2154 2152
2155#ifdef HAVE_DIRCACHE 2153#ifdef HAVE_DIRCACHE