Skip to content

Commit

Permalink
Do not coredump when viewing files larger that 8Mb.
Browse files Browse the repository at this point in the history
Bump PORTREVISION
Minor cosmetic fixes in the Makefile.

Submitted by:	Pavel Biryukov <[email protected]>
  • Loading branch information
Dmitry Sivachenko authored and Dmitry Sivachenko committed Aug 16, 2001
1 parent a91db81 commit 306fed2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 11 deletions.
23 changes: 12 additions & 11 deletions misc/deco/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@
# $FreeBSD$
#

PORTNAME= deco
PORTVERSION= 3.8.3
CATEGORIES= misc
MASTER_SITES= ftp://ftp.cronyx.ru/cronyx/deco/
DISTNAME= deco383
EXTRACT_SUFX= .tgz
PORTNAME= deco
PORTVERSION= 3.8.3
PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= ftp://ftp.cronyx.ru/cronyx/deco/
DISTNAME= deco383
EXTRACT_SUFX= .tgz

MAINTAINER= [email protected]

WRKSRC= ${WRKDIR}/deco383
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --libdir=${PREFIX}/share
CONFIGURE_ENV= ac_cv_lib_ncurses_tgetent=no
MAN1= deco.1 deco-r.1
WRKSRC= ${WRKDIR}/deco383
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --libdir=${PREFIX}/share
CONFIGURE_ENV= ac_cv_lib_ncurses_tgetent=no
MAN1= deco.1 deco-r.1

.include <bsd.port.mk>
11 changes: 11 additions & 0 deletions misc/deco/files/patch-af
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- rec.c.orig Thu Aug 16 17:29:07 2001
+++ rec.c Thu Aug 16 17:29:35 2001
@@ -61,7 +61,7 @@
static char *scanbuf, *pbuf;
static char *tfilename;
static int eoln;
-static int MAXLEN = ((unsigned int) (int) -1 >> 1) / sizeof (struct index);
+static int MAXLEN = 32767;

static int ffcopy (int from, int to)
{

0 comments on commit 306fed2

Please sign in to comment.