[w3m-dev 04108] PIPE_BUF

Hiroyuki Ito <[email protected]>
Newsgroups gmane.comp.web.w3m.devel
Message-ID <[email protected]>


 test.txt

$ cat test.txt
<a href="aaa.html">aaa</a><br>

 w3m test.txt  PIPE_BUF cat;VIEW SOURCE;
 core dump 

make_lastline_link()  parseURL2() 
current->file  NULL 


 patch  pipeBuf 

buf->currentURL.file = "-";

 core dump 



--- main.c.old	2004-09-24 19:23:25.000000000 +0900
+++ main.c	2004-09-24 19:19:35.000000000 +0900
@@ -1966,6 +1966,7 @@
 	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);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.