summaryrefslogtreecommitdiff
path: root/www/w3m/patches/patch-ai
diff options
context:
space:
mode:
Diffstat (limited to 'www/w3m/patches/patch-ai')
-rw-r--r--www/w3m/patches/patch-ai17
1 files changed, 17 insertions, 0 deletions
diff --git a/www/w3m/patches/patch-ai b/www/w3m/patches/patch-ai
new file mode 100644
index 00000000000..b176fba132a
--- /dev/null
+++ b/www/w3m/patches/patch-ai
@@ -0,0 +1,17 @@
+$NetBSD: patch-ai,v 1.3 2001/09/28 10:10:41 itojun Exp $
+
+plug security hole.
+http://mi.med.tohoku.ac.jp/~satodai/w3m-dev/200109.month/2226.html
+
+--- indep.h.orig Fri Sep 28 18:57:03 2001
++++ indep.h Fri Sep 28 18:57:45 2001
+@@ -20,7 +20,8 @@
+ extern char *allocStr(const char *s, int len);
+ extern int strCmp(const void *s1, const void *s2);
+ extern char *currentdir(void);
+-extern char *cleanupName(char *name);
++extern char *cleanupName2(char *name, int flag);
++#define cleanupName(name) cleanupName2((name), TRUE)
+ extern char *expandPath(char *name);
+ extern char *strcasestr(char *s1, char *s2);
+ extern int strcasemstr(char *str, char *srch[], char **ret_ptr);