diff options
-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 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 */ |