]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
fix long line bug from John Line webadm@info.cam.ac.uk
authorwessels <>
Tue, 28 Oct 1997 01:11:34 +0000 (01:11 +0000)
committerwessels <>
Tue, 28 Oct 1997 01:11:34 +0000 (01:11 +0000)
src/gopher.cc

index 81ce7e229e0bbc1e2151d5e402ef0f0f3eb892ec..9a8aa802d86df8427aea52b217c55fe54f0d3914 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: gopher.cc,v 1.105 1997/10/26 02:35:31 wessels Exp $
+ * $Id: gopher.cc,v 1.106 1997/10/27 18:11:34 wessels Exp $
  *
  * DEBUG: section 10    Gopher
  * AUTHOR: Harvest Derived
@@ -429,7 +429,7 @@ gopherToHTML(GopherStateData * gopherState, char *inbuf, int len)
            }
 
            /* skip one line */
-           pos = (char *) memchr(pos, '\n', 256);
+           pos = (char *) memchr(pos, '\n', len);
            if (pos)
                pos++;
 
@@ -457,7 +457,7 @@ gopherToHTML(GopherStateData * gopherState, char *inbuf, int len)
            }
 
            /* skip one line */
-           pos = (char *) memchr(pos, '\n', 256);
+           pos = (char *) memchr(pos, '\n', len);
            if (pos)
                pos++;