]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Kill some magic numbers in string definition
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 3 Jul 2008 10:19:27 +0000 (22:19 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 3 Jul 2008 10:19:27 +0000 (22:19 +1200)
tools/squidclient.cc

index 8b879599ddee8d59847a34e258d58e94691f206f..e64dbb7cc165f76dc41a3e2526b15c2543f408b1 100755 (executable)
@@ -89,7 +89,13 @@ using namespace Squid;
 #include "IPAddress.h"
 
 #ifndef BUFSIZ
-#define BUFSIZ 8192
+#define BUFSIZ         8192
+#endif
+#ifndef MESSAGELEN
+#define MESSAGELEN     65536
+#endif
+#ifndef HEADERLEN
+#define HEADERLEN      65536
 #endif
 
 typedef void SIGHDLR(int sig);
@@ -164,8 +170,8 @@ main(int argc, char *argv[])
     int opt_verbose = 0;
     const char *hostname, *localhost;
     IPAddress iaddr;
-    char url[BUFSIZ], msg[49152], buf[BUFSIZ];
-    char extra_hdrs[32768];
+    char url[BUFSIZ], msg[MESSAGELEN], buf[BUFSIZ];
+    char extra_hdrs[HEADERLEN];
     const char *method = "GET";
     extern char *optarg;
     time_t ims = 0;