[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>
This commit is contained in:
Fumitoshi UKAI
2002-03-08 03:28:38 +00:00
parent 52d8b35649
commit 9ab701643a
2 changed files with 11 additions and 3 deletions
+8 -1
View File
@@ -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 $
+3 -2
View File
@@ -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