* Applied patch http://www.gzip.org/gzip-1.2.4b.patch
* Cleaned up Jamfile git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27050 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -16,10 +16,9 @@ BinCommand gzip :
|
|||||||
unpack.c
|
unpack.c
|
||||||
unlzh.c
|
unlzh.c
|
||||||
crypt.c
|
crypt.c
|
||||||
|
: be
|
||||||
;
|
;
|
||||||
|
|
||||||
LinkAgainst gzip : be ;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
MakeLocatePlatform <bin>zdiff ;
|
MakeLocatePlatform <bin>zdiff ;
|
||||||
Shell <bin>zdiff : zdiff ;
|
Shell <bin>zdiff : zdiff ;
|
||||||
|
|||||||
+8
-1
@@ -45,7 +45,7 @@ static char *license_msg[] = {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef RCSID
|
#ifdef RCSID
|
||||||
static char rcsid[] = "$Id: gzip.c,v 1.1 2003/06/11 15:56:08 darkwyrm Exp $";
|
static char rcsid[] = "$Id$";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
@@ -1005,7 +1005,14 @@ local int get_istat(iname, sbuf)
|
|||||||
#ifdef NO_MULTIPLE_DOTS
|
#ifdef NO_MULTIPLE_DOTS
|
||||||
char *dot; /* pointer to ifname extension, or NULL */
|
char *dot; /* pointer to ifname extension, or NULL */
|
||||||
#endif
|
#endif
|
||||||
|
int max_suffix_len = (z_len > 3 ? z_len : 3);
|
||||||
|
|
||||||
|
/* Leave enough room in ifname or ofname for suffix: */
|
||||||
|
if (strlen(iname) >= sizeof(ifname) - max_suffix_len) {
|
||||||
|
strncpy(ifname, iname, sizeof(ifname) - 1);
|
||||||
|
/* last byte of ifname is already zero and never overwritten */
|
||||||
|
error("file name too long");
|
||||||
|
}
|
||||||
strcpy(ifname, iname);
|
strcpy(ifname, iname);
|
||||||
|
|
||||||
/* If input file exists, return OK. */
|
/* If input file exists, return OK. */
|
||||||
|
|||||||
Reference in New Issue
Block a user