aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog9
-rw-r--r--file.c5
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 19deb81..b774c4d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2002-03-08 Fumitoshi UKAI <ukai@debian.or.jp>
+
+ * [w3m-dev 03088] gopher broken
+ (Re: Bug#137287: w3m: segfault on gopher://xxxx.xxx URI)
+ * file.c (form_max): initial value should be -1
+ * file.c (loadGopherDir): </A>
+
2002-03-08 YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
* [w3m-dev 03087] vi +1 emptyfile
@@ -3068,4 +3075,4 @@
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.335 2002/03/07 16:10:22 ukai Exp $
+$Id: ChangeLog,v 1.336 2002/03/08 03:28:38 ukai Exp $
diff --git a/file.c b/file.c
index 015d18e..46cca25 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.74 2002/03/05 16:58:09 ukai Exp $ */
+/* $Id: file.c,v 1.75 2002/03/08 03:28:38 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -115,7 +115,7 @@ static struct link_stack *link_stack = NULL;
#define INITIAL_FORM_SIZE 10
static FormList **forms;
static int *form_stack;
-static int form_max = 0;
+static int form_max = -1;
static int forms_size = 0;
#define cur_form_id ((form_sp >= 0)? form_stack[form_sp] : -1)
static int form_sp = 0;
@@ -6287,6 +6287,7 @@ loadGopherDir(URLFile *uf, Buffer *newBuf)
Strcat_charp(lbuf, "\">");
Strcat_charp(lbuf, p);
Strcat_charp(lbuf, name->ptr + 1);
+ Strcat_charp(lbuf, "</A>");
pushTextLine(tl, newTextLine(lbuf, visible_length(lbuf->ptr)));
}
#ifdef JP_CHARSET