diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2001-06-19 12:56:09 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2001-06-19 12:56:09 +0000 |
commit | 49efce046f00c369c28a5ae75318747e5442c3a0 (patch) | |
tree | 829398847e2a49e79b65d350122f15a96a358bc4 /www/w3m | |
parent | 11efcac7aed2ab6cd93d1b272f6c0f85c1bc10d9 (diff) | |
download | ports-49efce046f00c369c28a5ae75318747e5442c3a0.tar.gz ports-49efce046f00c369c28a5ae75318747e5442c3a0.zip |
Notes
Diffstat (limited to 'www/w3m')
-rw-r--r-- | www/w3m/Makefile | 1 | ||||
-rw-r--r-- | www/w3m/files/patch-mimehead.c | 28 |
2 files changed, 29 insertions, 0 deletions
diff --git a/www/w3m/Makefile b/www/w3m/Makefile index fa4514157e5e..ec56206c2750 100644 --- a/www/w3m/Makefile +++ b/www/w3m/Makefile @@ -7,6 +7,7 @@ PORTNAME= w3m PORTVERSION= 0.2.1 +PORTREVISION= 1 CATEGORIES+= www ipv6 MASTER_SITES= ftp://ei5nazha.yz.yamagata-u.ac.jp/w3m/ \ http://mi.med.tohoku.ac.jp/~satodai/w3m/src/ \ diff --git a/www/w3m/files/patch-mimehead.c b/www/w3m/files/patch-mimehead.c new file mode 100644 index 000000000000..1d1a81c3cb3b --- /dev/null +++ b/www/w3m/files/patch-mimehead.c @@ -0,0 +1,28 @@ +--- mimehead.c.orig Fri Mar 23 10:49:53 2001 ++++ mimehead.c Tue Jun 19 21:46:21 2001 +@@ -166,21 +166,20 @@ + Str + decodeWord(char **ow) + { +- char charset[32]; + char *p, *w = *ow; + char method; + Str a = Strnew(); ++ Str charset = Strnew(); + + if (*w != '=' || *(w + 1) != '?') + goto convert_fail; + w += 2; +- for (p = charset; *w != '?'; w++) { ++ for (; *w != '?'; w++) { + if (*w == '\0') + goto convert_fail; +- *(p++) = *w; ++ Strcat_char(charset,*w); + } +- *p = '\0'; +- if (strcasecmp(charset, J_CHARSET) != 0) { ++ if (Strcasecmp_charp(charset, J_CHARSET) != 0) { + /* NOT ISO-2022-JP encoding ... don't convert */ + goto convert_fail; + } |