aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-03-08 03:28:38 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-03-08 03:28:38 +0000
commit9ab701643a1ed5b165c1fa0d9e5c891d7caaf78f (patch)
treec38275f1e0938d78f2e36c999df2ab212ac60888 /file.c
parent[w3m-dev 03087] vi +1 emptyfile (diff)
downloadw3m-9ab701643a1ed5b165c1fa0d9e5c891d7caaf78f.tar.gz
w3m-9ab701643a1ed5b165c1fa0d9e5c891d7caaf78f.zip
[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> From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to 'file.c')
-rw-r--r--file.c5
1 files changed, 3 insertions, 2 deletions
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