From 9e6d5cc13a20e3b43bf307146fa42733b22c780f Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 30 Jul 2023 01:41:29 -0400 Subject: [PATCH] spelling: theoretical Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- udp-listener.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udp-listener.c b/udp-listener.c index cb16f4f..5aeb687 100644 --- a/udp-listener.c +++ b/udp-listener.c @@ -251,7 +251,7 @@ struct connection* udp_c2s_forward(int sockfd, struct loop_info* fd_info) ssize_t len; socklen_t addrlen; int res, target, out = -1; - char data[65536]; /* Theoritical max is 65507 (https://en.wikipedia.org/wiki/User_Datagram_Protocol). + char data[65536]; /* Theoretical max is 65507 (https://en.wikipedia.org/wiki/User_Datagram_Protocol). This will do. Dynamic allocation is possible with the MSG_PEEK flag in recvfrom(2), but that'd imply malloc/free overhead for each packet, when really 64K is not that much */