diff --git a/apps/playlist_catalog.c b/apps/playlist_catalog.c index 2fbffdaa3c..ef44e36ba7 100644 --- a/apps/playlist_catalog.c +++ b/apps/playlist_catalog.c @@ -381,9 +381,9 @@ static int add_to_playlist(const char* playlist, bool new_playlist, if (f < 0) goto exit; + i = lseek(f, 0, SEEK_CUR); fs = filesize(f); - - for (i=0; i