mostly DPX list read inclusion
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / filelist.C
index 4819cb5a438bce0a6cc6f1f3076f7a55dd5ae0d0..8c923409ebf319e2653633354d0550324cbf3e11 100644 (file)
@@ -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)) {