diff options
Diffstat (limited to 'plugins/check_tcp.c')
-rw-r--r-- | plugins/check_tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c index c13ac76..49ad096 100644 --- a/plugins/check_tcp.c +++ b/plugins/check_tcp.c | |||
@@ -119,7 +119,7 @@ int main(int argc, char **argv) { | |||
119 | 119 | ||
120 | /* set up a reasonable buffer at first (will be realloc()'ed if | 120 | /* set up a reasonable buffer at first (will be realloc()'ed if |
121 | * user specifies other options) */ | 121 | * user specifies other options) */ |
122 | server_expect = calloc(sizeof(char *), 2); | 122 | server_expect = calloc(2, sizeof(char *)); |
123 | 123 | ||
124 | /* determine defaults for this service's protocol */ | 124 | /* determine defaults for this service's protocol */ |
125 | if (!strncmp(SERVICE, "UDP", 3)) { | 125 | if (!strncmp(SERVICE, "UDP", 3)) { |