summaryrefslogtreecommitdiff
path: root/apps/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index 49c52a9b7e..0d02be3d48 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -1762,9 +1762,8 @@ static ssize_t format_track_path(char *dest, char *src, int buf_length,
1762 * to "/<0>/bar" (aka "/bar" at this time). *fingers crossed* 1762 * to "/<0>/bar" (aka "/bar" at this time). *fingers crossed*
1763 * 1763 *
1764 * If any stripped drive spec was absolute, prepend the playlist 1764 * If any stripped drive spec was absolute, prepend the playlist
1765 * directory's volume spec, or root if none. Relative paths remain 1765 * directory's volume spec, or root if none. Absolute UNIX-style paths
1766 * relative and the playlist's directory fully qualifies them. Absolute 1766 * remain unaltered.
1767 * UNIX-style paths remain unaltered.
1768 */ 1767 */
1769 if (path_strip_drive(src, (const char **)&src, true) >= 0 && 1768 if (path_strip_drive(src, (const char **)&src, true) >= 0 &&
1770 src[-1] == PATH_SEPCH) 1769 src[-1] == PATH_SEPCH)
@@ -1782,7 +1781,9 @@ static ssize_t format_track_path(char *dest, char *src, int buf_length,
1782 if (len >= (size_t)buf_length) 1781 if (len >= (size_t)buf_length)
1783 return -1; /* buffer too small */ 1782 return -1; /* buffer too small */
1784 1783
1785 return len; 1784 path_remove_dot_segments (dest, dest);
1785
1786 return strlen (dest);
1786} 1787}
1787 1788
1788/* 1789/*