summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/playlist.c4
-rw-r--r--apps/tagcache.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 62f85eab40..dcf2fe1118 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -1353,8 +1353,8 @@ static int get_filename(struct playlist_info* playlist, int index, int seek,
1353 { 1353 {
1354 if (playlist->filenames[index] != NULL) 1354 if (playlist->filenames[index] != NULL)
1355 { 1355 {
1356 dircache_copy_path(playlist->filenames[index], tmp_buf, sizeof(tmp_buf)-1); 1356 max = dircache_copy_path(playlist->filenames[index],
1357 max = strlen(tmp_buf); 1357 tmp_buf, sizeof(tmp_buf)-1);
1358 } 1358 }
1359 } 1359 }
1360#else 1360#else
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 0c85fc5957..080f4198c3 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -1481,10 +1481,10 @@ static bool get_next(struct tagcache_search *tcs)
1481 if (tcs->type == tag_filename && (flag & FLAG_DIRCACHE) 1481 if (tcs->type == tag_filename && (flag & FLAG_DIRCACHE)
1482 && is_dircache_intact()) 1482 && is_dircache_intact())
1483 { 1483 {
1484 dircache_copy_path((struct dircache_entry *)tcs->position, 1484 size_t len = dircache_copy_path((struct dircache_entry *)tcs->position,
1485 buf, sizeof buf); 1485 buf, sizeof buf);
1486 tcs->result_len = len + 1;
1486 tcs->result = buf; 1487 tcs->result = buf;
1487 tcs->result_len = strlen(buf) + 1;
1488 tcs->ramresult = false; 1488 tcs->ramresult = false;
1489 1489
1490 return true; 1490 return true;