X-Git-Url: https://cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Ffilelist.C;h=8c923409ebf319e2653633354d0550324cbf3e11;hb=8b7ea38c6c4ddf7eab2f606682798aebd5fbb99a;hp=4819cb5a438bce0a6cc6f1f3076f7a55dd5ae0d0;hpb=e15276685c9e3eafaa329ae41092074a0e8452b1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/filelist.C b/cinelerra-5.1/cinelerra/filelist.C index 4819cb5a..8c923409 100644 --- a/cinelerra-5.1/cinelerra/filelist.C +++ b/cinelerra-5.1/cinelerra/filelist.C @@ -115,7 +115,7 @@ int FileList::open_file(int rd, int wr) int width = asset->width, height = asset->height; char string[BCTEXTLEN]; int len = strlen(list_prefix); - int ret = fread(string, 1, strlen(list_prefix), stream); + int ret = fread(string, 1, len, stream); fclose(stream); result = len == ret ? 0 : 1; if( !result && !strncasecmp(string, list_prefix, len)) {