* Cleaned up Jamfile


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27050 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2008-08-18 21:16:33 +00:00
parent 8139985d99
commit e210364f75
2 changed files with 9 additions and 3 deletions

View File

@ -16,10 +16,9 @@ BinCommand gzip :
unpack.c
unlzh.c
crypt.c
: be
;
LinkAgainst gzip : be ;
{
MakeLocatePlatform <bin>zdiff ;
Shell <bin>zdiff : zdiff ;

View File

@ -45,7 +45,7 @@ static char *license_msg[] = {
*/
#ifdef RCSID
static char rcsid[] = "$Id: gzip.c,v 1.1 2003/06/11 15:56:08 darkwyrm Exp $";
static char rcsid[] = "$Id$";
#endif
#include <ctype.h>
@ -1005,7 +1005,14 @@ local int get_istat(iname, sbuf)
#ifdef NO_MULTIPLE_DOTS
char *dot; /* pointer to ifname extension, or NULL */
#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);
/* If input file exists, return OK. */