aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2004-09-29 15:44:03 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2004-09-29 15:44:03 +0000
commit863ae727cc38022eb11a05339a98f229e1b4cfa4 (patch)
treee89aeb3a351b8435da8d930b133a76074fdff148 /main.c
parent[w3m-dev 04104] w3mmail.cgi (diff)
downloadw3m-863ae727cc38022eb11a05339a98f229e1b4cfa4.tar.gz
w3m-863ae727cc38022eb11a05339a98f229e1b4cfa4.zip
* [w3m-dev 04108] PIPE_BUF
* main.c (pipeBuf): set buf->currentURL.file to prevent segfault by "PIPE_BUF cat;VIEW SOURCE;" From: Hiroyuki Ito <ZXB01226@nifty.com>
Diffstat (limited to '')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
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 <signal.h>
@@ -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);