bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C version of htags committed.


From: Hideki IWAMOTO
Subject: Re: C version of htags committed.
Date: Thu, 05 Aug 2004 21:32:08 +0900

On Tue, 03 Aug 2004 07:26:23 +0900, Hideki IWAMOTO wrote...
> On Mon, 02 Aug 2004 21:41:37 +0900, Hideki IWAMOTO wrote...
> > Another problem was found. "INCLUDED FROM" index is not created.
> > 
> 
> This does not always happen.

In fileindex.c:843 closed file pointer `FIND' was used.

Commited following patch.

Index: htags/fileindex.c
===================================================================
RCS file: /cvsroot/global/global/htags/fileindex.c,v
retrieving revision 1.6
diff -u -r1.6 fileindex.c
--- htags/fileindex.c   5 Aug 2004 06:22:58 -0000       1.6
+++ htags/fileindex.c   5 Aug 2004 12:15:04 -0000
@@ -840,7 +840,7 @@
        if ((PIPE = popen(command, "r")) == NULL)
                die("cannot fork.");
        strbuf_reset(input);
-       while ((_ = strbuf_fgets(input, FIND, STRBUF_NOCRLF)) != NULL) {
+       while ((_ = strbuf_fgets(input, PIPE, STRBUF_NOCRLF)) != NULL) {
                SPLIT ptable;
                 char *nouse, *lno, *filename, *image;
                char *last, buf[MAXBUFLEN];

----
Hideki IWAMOTO  address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]