summaryrefslogtreecommitdiffstats
path: root/plugins/utils.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-11-09 10:31:48 (GMT)
committerGitHub <noreply@github.com>2024-11-09 10:31:48 (GMT)
commited52a7dbb7997c8fa9779e89fd2012eae85b2ce0 (patch)
treece9808a8c635f9add0f592540168d771f4ee5d0a /plugins/utils.c
parentb370072a5a1e21876abf8cf95f4622c02565ae07 (diff)
parent6eb5be9e30b23035632b674f6b46c18313cde63b (diff)
downloadmonitoring-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.c2
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"));