freebsd-ports/sysutils/vobcopy/files/patch-dvd.c
Mario Sergio Fujikawa Ferreira 075fbb61a1 Update to 1.0.1
2006-12-10 16:26:06 +00:00

24 lines
827 B
C

--- dvd.c.orig Tue Dec 5 00:06:52 2006
+++ dvd.c Tue Dec 5 00:09:54 2006
@@ -637,21 +637,6 @@
return ( off_t ) vob_size;
}
- sprintf( stat_path, "%s_1.vob", path_to_vobs3 );
- if( ( tmp_streamin1 = fopen( stat_path, "r" ) ) != NULL ) /*check if this path is correct */
- {
- fclose ( tmp_streamin1 );
- subvob = 1;
- while( !stat( stat_path, &buf ) )
- {
- /* adjust path for next subvob */
- subvob++;
- sprintf( stat_path, "%s_%d.vob", path_to_vobs3, subvob );
- vob_size += buf.st_size;
- }
- return ( off_t ) vob_size;
- }
-
/*none of the above seemed to have caught it, so this is the error return */
return ( off_t ) 0; /* think that (off_t) is not really needed here?
as it is defined as off_t and the function is