- Prevent a division by zero [1]

- Use gentoo mirrors
- Bump portrevision

PR:		ports/107468 [1]
Submitted by:	Jonathan Liu <Net147@hotmail.com>
Approved by:	Conrad J. Sabatier <conrads at cox.net> (maintainer timeout, 19 days)
This commit is contained in:
Andrew Pantyukhin 2007-01-22 20:54:11 +00:00
parent c79b42fc98
commit 990ea8bdd0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=183016
2 changed files with 12 additions and 2 deletions

View file

@ -7,9 +7,9 @@
PORTNAME= dvdbackup
PORTVERSION= 0.1.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= http://dvd-create.sourceforge.net/
MASTER_SITES= http://dvd-create.sourceforge.net/ GENTOO/distfiles
MAINTAINER= conrads@cox.net
COMMENT= Backup content from DVD to hard disk

View file

@ -19,6 +19,16 @@
fprintf(stderr,"\t-a is option to the -F switch and has no effect on other options\n");
fprintf(stderr,"\t-s and -e should prefereibly be used together with -t \n\n");
exit(1);
@@ -228,7 +228,8 @@
}
int CheckSizeArray(const int size_array[], int reference, int target) {
- if ( (size_array[reference]/size_array[target] == 1) &&
+ if ( size_array[target] &&
+ (size_array[reference]/size_array[target] == 1) &&
((size_array[reference] * 2 - size_array[target])/ size_array[target] == 1) &&
((size_array[reference]%size_array[target] * 3) < size_array[reference]) ) {
/* We have a dual DVD with two feature films - now lets see if they have the same amount of chapters*/
@@ -782,7 +783,7 @@
to consider the second one a feature title we are doing two checks (biggest + biggest - second) /second == 1
and biggest%second * 3 < biggest */