diff options
author | sat <sat@FreeBSD.org> | 2007-01-23 04:54:11 +0800 |
---|---|---|
committer | sat <sat@FreeBSD.org> | 2007-01-23 04:54:11 +0800 |
commit | c3fd453141e9c706e71d209c354956b19870b32a (patch) | |
tree | 564a38409f73b71f2474d7f00ec18fd3ca9facd8 /sysutils | |
parent | 65f43b893075b84a19317aa2f387297b66891a8a (diff) | |
download | freebsd-ports-gnome-c3fd453141e9c706e71d209c354956b19870b32a.tar.gz freebsd-ports-gnome-c3fd453141e9c706e71d209c354956b19870b32a.tar.zst freebsd-ports-gnome-c3fd453141e9c706e71d209c354956b19870b32a.zip |
- 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)
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/dvdbackup/Makefile | 4 | ||||
-rw-r--r-- | sysutils/dvdbackup/files/patch-src::dvdbackup.c | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/sysutils/dvdbackup/Makefile b/sysutils/dvdbackup/Makefile index 36dd3f96f3a4..982bee6559dc 100644 --- a/sysutils/dvdbackup/Makefile +++ b/sysutils/dvdbackup/Makefile @@ -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 diff --git a/sysutils/dvdbackup/files/patch-src::dvdbackup.c b/sysutils/dvdbackup/files/patch-src::dvdbackup.c index ee1f81bdfd1c..1741e69209d8 100644 --- a/sysutils/dvdbackup/files/patch-src::dvdbackup.c +++ b/sysutils/dvdbackup/files/patch-src::dvdbackup.c @@ -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 */ |