diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-06-20 20:12:15 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-06-20 20:12:15 +0000 |
commit | e0637255341a165e1e186e6f2836c614f0121c8b (patch) | |
tree | 248fb995e73cfb4b623a5d041e3e28b311fbafde /apps/playlist.c | |
parent | 38da400e58b78f0fd399bdb8e52e1ba63aca75a7 (diff) | |
download | rockbox-e0637255341a165e1e186e6f2836c614f0121c8b.tar.gz rockbox-e0637255341a165e1e186e6f2836c614f0121c8b.zip |
Dircache: Return the size of the result string in dircache_copy_path() so that callers don't need to call strlen on it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30034 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.c')
-rw-r--r-- | apps/playlist.c | 4 |
1 files changed, 2 insertions, 2 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 |