diff options
| author | Hardeep Sidhu <dyp@pobox.com> | 2003-07-02 16:14:49 +0000 |
|---|---|---|
| committer | Hardeep Sidhu <dyp@pobox.com> | 2003-07-02 16:14:49 +0000 |
| commit | a8950c3d3b2c7e2888dd2546d391c7bd93306d50 (patch) | |
| tree | aae85cae71d958342cd3fb7617ea8c095be14123 | |
| parent | 11e7ad50a07c0ffcb2005e40c3314bb49a9a1d8b (diff) | |
| download | rockbox-a8950c3d3b2c7e2888dd2546d391c7bd93306d50.zip rockbox-a8950c3d3b2c7e2888dd2546d391c7bd93306d50.tar.gz rockbox-a8950c3d3b2c7e2888dd2546d391c7bd93306d50.tar.bz2 rockbox-a8950c3d3b2c7e2888dd2546d391c7bd93306d50.tar.xz | |
Dos-style pathnames were being copied incorrectly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3800 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/playlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index b5309cd..ec3e3cf 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, { /* handle dos style drive letter */ if (':' == src[1]) - strcpy(src, &dest[2]); + strncpy(dest, &src[2], buf_length); else if ('.' == src[0] && '.' == src[1] && '/' == src[2]) { /* handle relative paths */ |