summaryrefslogtreecommitdiff
path: root/functions.h
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-05-27 17:25:34 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-05-27 17:25:34 +0100
commit55f0010f89fe62928b8aef29bfbf73407380ad69 (patch)
tree03df615aeaa0a85922a510fe9470c06ee3f3366c /functions.h
parent3c60bbdb928da1ebcec9153fb199ad740ad41856 (diff)
Make sure MAXTOKENS being exceeded can't cause a buffer overflow.
Diffstat (limited to 'functions.h')
-rw-r--r--functions.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/functions.h b/functions.h
index fe1bee8..8fb5145 100644
--- a/functions.h
+++ b/functions.h
@@ -14,7 +14,6 @@
#include <sys/select.h>
#define MAXDATASIZE 513 // max number of bytes we can get at once (RFC2812 says 512, plus one for null terminator)
-#define MAXTOKENS 100 // maximum number of (CRLF or space) separated tokens per server response we expect (TODO - check this is reasonable)
// getstdin() return codes
#define OK 0