summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/w3m/Makefile1
-rw-r--r--www/w3m/files/patch-mimehead.c28
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;
+ }