From a8950c3d3b2c7e2888dd2546d391c7bd93306d50 Mon Sep 17 00:00:00 2001 From: Hardeep Sidhu Date: Wed, 2 Jul 2003 16:14:49 +0000 Subject: Dos-style pathnames were being copied incorrectly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3800 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') 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, { /* 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 */ -- cgit v1.2.3