summary refs log tree commit diff
path: root/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'server.c')
-rw-r--r--server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.c b/server.c
index 2bb897d..1741f14 100644
--- a/server.c
+++ b/server.c
@@ -149,7 +149,7 @@ void serverFormat(const char *format, ...) {
 }
 
 void serverRecv(void) {
-	static char buf[4096];
+	static char buf[MessageCap];
 	static size_t len;
 
 	ssize_t read = tls_read(client, &buf[len], sizeof(buf) - len);