From 695bccbfc9422c9fc5d6053602f6df6ca5437c82 Mon Sep 17 00:00:00 2001 From: Un1q32 Date: Fri, 25 Apr 2025 02:01:40 -0400 Subject: [PATCH] tweak --- oc2rnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oc2rnet.c b/oc2rnet.c index 31d017b..8eeeaa3 100644 --- a/oc2rnet.c +++ b/oc2rnet.c @@ -108,7 +108,7 @@ static ssize_t doPing(uint32_t ip, size_t size, char *data, char *response, #else sizeof(struct icmp); #endif - unsigned char *recvbuf = calloc(size + header_size, 1); + unsigned char *recvbuf = malloc(size + header_size); if (!recvbuf) { #ifdef CLITEST fputs("malloc failed\n", stderr);