diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-09 10:31:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-09 10:31:48 (GMT) |
commit | ed52a7dbb7997c8fa9779e89fd2012eae85b2ce0 (patch) | |
tree | ce9808a8c635f9add0f592540168d771f4ee5d0a /plugins/utils.c | |
parent | b370072a5a1e21876abf8cf95f4622c02565ae07 (diff) | |
parent | 6eb5be9e30b23035632b674f6b46c18313cde63b (diff) | |
download | monitoring-plugins-ed52a7dbb7997c8fa9779e89fd2012eae85b2ce0.tar.gz |
Merge pull request #2045 from RincewindsHat/fix/calloc_argument_order
Fix argument order of calloc on several occasions
Diffstat (limited to 'plugins/utils.c')
-rw-r--r-- | plugins/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/utils.c b/plugins/utils.c index f11db73..6d366e3 100644 --- a/plugins/utils.c +++ b/plugins/utils.c | |||
@@ -185,7 +185,7 @@ bool is_percentage_expression(const char str[]) { | |||
185 | return false; | 185 | return false; |
186 | } | 186 | } |
187 | 187 | ||
188 | char *foo = calloc(sizeof(char), len + 1); | 188 | char *foo = calloc(len + 1, sizeof(char)); |
189 | 189 | ||
190 | if (!foo) { | 190 | if (!foo) { |
191 | die(STATE_UNKNOWN, _("calloc failed \n")); | 191 | die(STATE_UNKNOWN, _("calloc failed \n")); |