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