w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 5b28172848f421ac6dd69a7ce190f5ef6b92c3e0
parent 61942e63906503f212fd79afce919d2c7eb0fb27
Author: ukai <ukai>
Date:   Fri, 23 Nov 2001 22:41:42 +0000

[w3m-dev 02530] segfault for bad cookie from local
From: Fumitoshi UKAI <ukai@debian.or.jp>

Diffstat:
MChangeLog | 5+++++
Mfile.c | 3++-
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,5 +1,10 @@ 2001-11-24 Fumitoshi UKAI <ukai@debian.or.jp> + * [w3m-dev 02530] + * file.c (readHeader): NULL check for domain + +2001-11-24 Fumitoshi UKAI <ukai@debian.or.jp> + * [w3m-dev 02529] * configure (ask_choice): fix bugs * configure (include_opt): disable as much as if baby model diff --git a/file.c b/file.c @@ -652,7 +652,8 @@ readHeader(URLFile * uf, if (fmInitialized && (err & COO_OVERRIDE_OK) && accept_bad_cookie == PERHAPS) { Str msg = Sprintf("Accept bad cookie from %s for %s? (y or n) ", - pu->host, domain->ptr); + pu->host, + domain && domain->ptr ? domain->ptr : "<localdomain>"); if (msg->length > COLS - 4) Strshrink(msg, msg->length - (COLS - 4)); term_raw();