summaryrefslogtreecommitdiff
path: root/apps/metadata.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/metadata.c')
-rw-r--r--apps/metadata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/metadata.c b/apps/metadata.c
index 6003e1977e..b995e11d95 100644
--- a/apps/metadata.c
+++ b/apps/metadata.c
@@ -403,7 +403,7 @@ bool get_metadata(struct mp3entry* id3, int fd, const char* trackname)
403#endif 403#endif
404 404
405 lseek(fd, 0, SEEK_SET); 405 lseek(fd, 0, SEEK_SET);
406 strncpy(id3->path, trackname, sizeof(id3->path)); 406 strlcpy(id3->path, trackname, sizeof(id3->path));
407 407
408 return true; 408 return true;
409} 409}