]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
bump up MAX_URL size buffers to prevent fencepost problems
authorwessels <>
Tue, 16 Jul 1996 05:14:27 +0000 (05:14 +0000)
committerwessels <>
Tue, 16 Jul 1996 05:14:27 +0000 (05:14 +0000)
src/gopher.cc
src/wais.cc

index b6687afc06fe6140ed0539ce47fa23bff0c1a746..ca3a47de74ebe3fa8d581f20a459975c7274abdb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: gopher.cc,v 1.31 1996/07/09 03:41:26 wessels Exp $
+ * $Id: gopher.cc,v 1.32 1996/07/15 23:14:27 wessels Exp $
  *
  * DEBUG: section 10    Gopher
  * AUTHOR: Harvest Derived
@@ -151,7 +151,7 @@ typedef struct gopher_ds {
     int HTML_header_added;
     int port;
     char type_id;
-    char request[MAX_URL];
+    char request[MAX_URL + 1];
     int data_in;
     int cso_recno;
     int len;
@@ -184,7 +184,7 @@ static void gopher_mime_content(buf, name, def)
      char *name;
      char *def;
 {
-    static char temp[MAX_URL];
+    static char temp[MAX_URL + 1];
     char *ext1 = NULL;
     char *ext2 = NULL;
     char *str = NULL;
index 070f538ece0cb2e5f4f4b0c34a23920ab9439b94..74d9f02e8bed0e163d1b7ec18c518cacbfec97d9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: wais.cc,v 1.31 1996/07/09 03:41:47 wessels Exp $
+ * $Id: wais.cc,v 1.32 1996/07/15 23:14:28 wessels Exp $
  *
  * DEBUG: section 24    WAIS Relay
  * AUTHOR: Harvest Derived
@@ -114,7 +114,7 @@ typedef struct {
     char *relayhost;
     int relayport;
     char *mime_hdr;
-    char request[MAX_URL];
+    char request[MAX_URL + 1];
 } WaisStateData;
 
 static int waisStateFree _PARAMS((int, WaisStateData *));