diff options
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/rpm2pkg/Makefile | 4 | ||||
-rw-r--r-- | pkgtools/rpm2pkg/files/rpm2pkg.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/pkgtools/rpm2pkg/Makefile b/pkgtools/rpm2pkg/Makefile index fb51839bc37..c78d615291f 100644 --- a/pkgtools/rpm2pkg/Makefile +++ b/pkgtools/rpm2pkg/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.45 2010/06/14 11:24:47 tron Exp $ +# $NetBSD: Makefile,v 1.46 2010/06/15 19:52:02 tron Exp $ -DISTNAME= rpm2pkg-3.0.1 +DISTNAME= rpm2pkg-3.0.2 CATEGORIES= pkgtools MASTER_SITES= # empty DISTFILES= # empty diff --git a/pkgtools/rpm2pkg/files/rpm2pkg.c b/pkgtools/rpm2pkg/files/rpm2pkg.c index 51d71057626..0f06669b309 100644 --- a/pkgtools/rpm2pkg/files/rpm2pkg.c +++ b/pkgtools/rpm2pkg/files/rpm2pkg.c @@ -1,4 +1,4 @@ -/* $NetBSD: rpm2pkg.c,v 1.10 2010/06/14 11:24:48 tron Exp $ */ +/* $NetBSD: rpm2pkg.c,v 1.11 2010/06/15 19:52:02 tron Exp $ */ /*- * Copyright (c) 2004-2009 The NetBSD Foundation, Inc. @@ -206,7 +206,7 @@ Open(int fd) bzMatch++; if (bzMatch == sizeof(BZipMagic)) { archive_type = 1; - offset = i - bytes - + offset = (off_t)i - (off_t)bytes - sizeof(BZipMagic) + 1; break; } @@ -219,7 +219,7 @@ Open(int fd) gzMatch++; if (gzMatch == sizeof(GZipMagic)) { archive_type = 2; - offset = i - bytes - + offset = (off_t)i - (off_t)bytes - sizeof(GZipMagic) + 1; break; } |