From da5ea6f65cd01522011862a164389cf83d816a10 Mon Sep 17 00:00:00 2001 From: Solene Rapenne Date: Mon, 1 Mar 2021 23:12:11 +0100 Subject: [PATCH] use smaller char array for storing host and port --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index e6effd0..8c59cc6 100644 --- a/main.c +++ b/main.c @@ -10,8 +10,8 @@ int main(void){ struct sockaddr sock; socklen_t slen = sizeof(sock); - char host[1024] = ""; - char port[1044] = ""; + char host[128] = ""; + char port[6] = ""; int status; unveil("/sbin/pfctl", "rx");