diff options
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c index 4af457cd44..cee89d3bbb 100644 --- a/apps/playback.c +++ b/apps/playback.c | |||
@@ -617,7 +617,7 @@ struct mp3entry* audio_current_track(void) | |||
617 | return write_id3; | 617 | return write_id3; |
618 | #endif | 618 | #endif |
619 | 619 | ||
620 | strncpy(write_id3->path, filename, sizeof(write_id3->path)-1); | 620 | strlcpy(write_id3->path, filename, sizeof(write_id3->path)); |
621 | write_id3->title = strrchr(write_id3->path, '/'); | 621 | write_id3->title = strrchr(write_id3->path, '/'); |
622 | if (!write_id3->title) | 622 | if (!write_id3->title) |
623 | write_id3->title = &write_id3->path[0]; | 623 | write_id3->title = &write_id3->path[0]; |