1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

- Update to 2.1

This commit is contained in:
Pav Lucistnik 2006-02-21 10:41:25 +00:00
parent 5b09fe91a3
commit 0e926939ff
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=156572
3 changed files with 4 additions and 19 deletions

View File

@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= rzip
PORTVERSION= 2.0
PORTVERSION= 2.1
CATEGORIES= archivers
MASTER_SITES= http://rzip.samba.org/ftp/rzip/

View File

@ -1,3 +1,3 @@
MD5 (rzip-2.0.tar.gz) = 8a88b445afba919b122a3899d6d26b2a
SHA256 (rzip-2.0.tar.gz) = 98b45538202d1bb69acac849bd5f39a30107c3b0483c3d9bdddf755c3923909a
SIZE (rzip-2.0.tar.gz) = 42699
MD5 (rzip-2.1.tar.gz) = 0a3ba55085661647c12f2b014c51c406
SHA256 (rzip-2.1.tar.gz) = 4bb96f4d58ccf16749ed3f836957ce97dbcff3e3ee5fd50266229a48f89815b7
SIZE (rzip-2.1.tar.gz) = 46785

View File

@ -1,15 +0,0 @@
--- main.c.orig Thu Feb 12 01:01:08 2004
+++ main.c Fri Apr 9 18:28:33 2004
@@ -137,10 +137,8 @@
strlen(control->infile) - strlen(control->suffix)) != 0) {
fatal("%s: unknown suffix\n", control->infile);
}
-
- control->outfile = strndup(control->infile,
- strlen(control->infile) -
- strlen(control->suffix));
+ control->outfile = malloc(strlen(control->infile) - strlen(control->suffix) + 1);
+ strncpy(control->outfile, control->infile, strlen(control->infile) - strlen(control->suffix));
}
fd_in = open(control->infile,O_RDONLY);