From 863ae727cc38022eb11a05339a98f229e1b4cfa4 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Wed, 29 Sep 2004 15:44:03 +0000 Subject: * [w3m-dev 04108] PIPE_BUF * main.c (pipeBuf): set buf->currentURL.file to prevent segfault by "PIPE_BUF cat;VIEW SOURCE;" From: Hiroyuki Ito --- ChangeLog | 8 +++++++- main.c | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b00c220..c31281a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-09-30 Hiroyuki Ito + + * [w3m-dev 04108] PIPE_BUF + * main.c (pipeBuf): set buf->currentURL.file to prevent + segfault by "PIPE_BUF cat;VIEW SOURCE;" + 2004-08-31 SAKAI Kiyotaka * [w3m-dev 04104] w3mmail.cgi @@ -8574,4 +8580,4 @@ a * [w3m-dev 03276] compile error on EWS4800 * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.937 2004/08/30 16:32:23 ukai Exp $ +$Id: ChangeLog,v 1.938 2004/09/29 15:44:03 ukai Exp $ diff --git a/main.c b/main.c index c244c92..ced3d5f 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.245 2004/08/02 15:40:50 ukai Exp $ */ +/* $Id: main.c,v 1.246 2004/09/29 15:44:03 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include @@ -1966,6 +1966,7 @@ DEFUN(pipeBuf, PIPE_BUF, "Send rendered document to pipe") buf->bufferprop |= (BP_INTERNAL | BP_NO_URL); if (buf->type == NULL) buf->type = "text/plain"; + buf->currentURL.file = "-"; pushBuffer(buf); } displayBuffer(Currentbuf, B_FORCE_REDRAW); -- cgit v1.2.3