diff options
author | nobutaka <nobutaka@FreeBSD.org> | 2002-07-27 09:44:49 +0000 |
---|---|---|
committer | nobutaka <nobutaka@FreeBSD.org> | 2002-07-27 09:44:49 +0000 |
commit | 3f91e8ae8fba75aeefbb1f7be170eff0d471ea70 (patch) | |
tree | 7c856bf36dca75f002625f3f4eab148a84f81ee9 | |
parent | 4300b0d9ba8fd758510da3842a261f1d11fad854 (diff) | |
download | FreeBSD-ports-3f91e8ae8fba75aeefbb1f7be170eff0d471ea70.zip FreeBSD-ports-3f91e8ae8fba75aeefbb1f7be170eff0d471ea70.tar.gz |
Fix the crash caused by jumping to last anchor in plain text files.
Submitted by: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
-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 5982cfc..f06c42a 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 0000000..955c05f --- /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; |