1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Essential line wrapping fix for embedded color assii art.

PORTREVISION bumped.

PR: 26691
Submitted by: Yen-Ming Lee <leeym@bsd.ce.ntu.edu.tw>
Approved by: MAINTAINER
This commit is contained in:
Clive Lin 2001-04-19 02:44:17 +00:00
parent 14c317729b
commit 84310fa3a2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=41669
2 changed files with 23 additions and 1 deletions

View File

@ -8,12 +8,14 @@
MASTERDIR= ${.CURDIR}/../../news/tin
PORTREVISION= 1
MAINTAINER= yssu@CCCA.NCTU.edu.tw
EXTRA_PATCHES= ${.CURDIR}/files/patch-charset.c \
${.CURDIR}/files/patch-cook.c \
${.CURDIR}/files/patch-init.c \
${.CURDIR}/files/patch-misc.c
${.CURDIR}/files/patch-misc.c \
${.CURDIR}/files/patch-page.c
.include "${MASTERDIR}/Makefile"

View File

@ -0,0 +1,20 @@
--- src/page.c.orig Wed Feb 21 03:18:52 2001
+++ src/page.c Thu Apr 19 09:35:25 2001
@@ -867,7 +867,7 @@
curr = &artline[curr_line+i];
fseek (note_fp, curr->offset, SEEK_SET);
- fgets (buff, cCOLS+1, note_fp);
+ fgets (buff, MAXPATHLEN, note_fp);
/*
* rotN encoding on body and sig data only
@@ -1186,7 +1186,7 @@
make_group_path (CURR_GROUP.name, group_path);
- switch (art_open (TRUE, &arts[new_respnum], group_path, &pgart)) {
+ switch (art_open (FALSE, &arts[new_respnum], group_path, &pgart)) {
case ART_UNAVAILABLE:
art_mark_read (&CURR_GROUP, &arts[new_respnum]);