diff options
author | MANTANI Nobutaka <nobutaka@FreeBSD.org> | 2002-07-27 09:44:49 +0000 |
---|---|---|
committer | MANTANI Nobutaka <nobutaka@FreeBSD.org> | 2002-07-27 09:44:49 +0000 |
commit | 4cb2d1a0cfbffd47b292b7b7f94d6a28ec9b94d1 (patch) | |
tree | 2968387f0e122250e1d95492816aa4fd02c8e0e0 /www | |
parent | Fix fonts.dir and fonts.alias. (diff) |
Fix the crash caused by jumping to last anchor in plain text files.
Submitted by: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Notes
Notes:
svn path=/head/; revision=63627
Diffstat (limited to 'www')
-rw-r--r-- | www/w3m/Makefile | 1 | ||||
-rw-r--r-- | www/w3m/files/patch-main.c | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/www/w3m/Makefile b/www/w3m/Makefile index 5982cfc201d4..f06c42ad087a 100644 --- a/www/w3m/Makefile +++ b/www/w3m/Makefile @@ -7,6 +7,7 @@ PORTNAME= w3m PORTVERSION= ${W3M_VERSION} +PORTREVISION= 1 CATEGORIES+= www ipv6 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/www/w3m/files/patch-main.c b/www/w3m/files/patch-main.c new file mode 100644 index 000000000000..955c05f54b6f --- /dev/null +++ b/www/w3m/files/patch-main.c @@ -0,0 +1,20 @@ +--- main.c.orig Wed Jul 17 21:54:51 2002 ++++ main.c Wed Jul 17 21:57:26 2002 +@@ -3307,7 +3307,7 @@ + HmarkerList *hl = Currentbuf->hmarklist; + BufferPoint *po; + Anchor *an; +- int hseq = hl->nmark - 1; ++ int hseq; + + if (Currentbuf->firstLine == NULL) + return; +@@ -3318,6 +3318,8 @@ + hseq = 0; + else if (prec_num > 0) + hseq = hl->nmark - prec_num; ++ else ++ hseq = hl->nmark - 1; + do { + if (hseq < 0) + return; |