From 6eb5be9e30b23035632b674f6b46c18313cde63b Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Sat, 9 Nov 2024 10:49:21 +0100 Subject: Fix argument order of calloc on several occasions --- plugins/check_tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/check_tcp.c') diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index c13ac767..49ad096c 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c @@ -119,7 +119,7 @@ int main(int argc, char **argv) { /* set up a reasonable buffer at first (will be realloc()'ed if * user specifies other options) */ - server_expect = calloc(sizeof(char *), 2); + server_expect = calloc(2, sizeof(char *)); /* determine defaults for this service's protocol */ if (!strncmp(SERVICE, "UDP", 3)) { -- cgit v1.2.3-74-g34f1