summaryrefslogtreecommitdiff
path: root/apps/playlist.c
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2003-07-02 16:14:49 +0000
committerHardeep Sidhu <dyp@pobox.com>2003-07-02 16:14:49 +0000
commita8950c3d3b2c7e2888dd2546d391c7bd93306d50 (patch)
treeaae85cae71d958342cd3fb7617ea8c095be14123 /apps/playlist.c
parent11e7ad50a07c0ffcb2005e40c3314bb49a9a1d8b (diff)
downloadrockbox-a8950c3d3b2c7e2888dd2546d391c7bd93306d50.tar.gz
rockbox-a8950c3d3b2c7e2888dd2546d391c7bd93306d50.zip
Dos-style pathnames were being copied incorrectly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3800 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index b5309cdba0..ec3e3cf79b 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -875,7 +875,7 @@ static int format_track_path(char *dest, char *src, int buf_length, int max,
875 { 875 {
876 /* handle dos style drive letter */ 876 /* handle dos style drive letter */
877 if (':' == src[1]) 877 if (':' == src[1])
878 strcpy(src, &dest[2]); 878 strncpy(dest, &src[2], buf_length);
879 else if ('.' == src[0] && '.' == src[1] && '/' == src[2]) 879 else if ('.' == src[0] && '.' == src[1] && '/' == src[2])
880 { 880 {
881 /* handle relative paths */ 881 /* handle relative paths */