aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-12-10 16:29:37 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-12-10 16:29:37 +0000
commit0b03496f19efa937b49eb496ebb2abb3dcd68365 (patch)
tree0a18e50b68264f09093f8e9bf524096507dd4770
parent[w3m-dev 02647] (diff)
downloadw3m-0b03496f19efa937b49eb496ebb2abb3dcd68365.tar.gz
w3m-0b03496f19efa937b49eb496ebb2abb3dcd68365.zip
[w3m-dev 02650]
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
-rw-r--r--ChangeLog7
-rw-r--r--file.c4
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index e7dd1d8..9214aef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-11 Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
+
+ * [w3m-dev 02650]
+ * file.c (readHeader): Strnew_charp_n() should be used
+
2001-12-11 Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 02647]
@@ -1145,4 +1150,4 @@
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.122 2001/12/10 15:42:38 ukai Exp $
+$Id: ChangeLog,v 1.123 2001/12/10 16:29:37 ukai Exp $
diff --git a/file.c b/file.c
index 90c391b..59672de 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.30 2001/12/09 13:59:04 ukai Exp $ */
+/* $Id: file.c,v 1.31 2001/12/10 16:29:37 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -560,7 +560,7 @@ readHeader(URLFile *uf, Buffer *newBuf, int thru, ParsedURL *pu)
tmp = Strnew_size(lineBuf2->length);
for (p = lineBuf2->ptr; *p; p = q) {
for (q = p; *q && *q != '\r' && *q != '\n'; q++) ;
- lineBuf2 = checkType(Strnew_charp(p), propBuffer,
+ lineBuf2 = checkType(Strnew_charp_n(p, q - p), propBuffer,
#ifdef USE_ANSI_COLOR
NULL, NULL,
#endif