summaryrefslogtreecommitdiffstats
path: root/plugins/utils.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-11-09 10:49:21 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-11-09 10:49:21 +0100
commit6eb5be9e30b23035632b674f6b46c18313cde63b (patch)
treece9808a8c635f9add0f592540168d771f4ee5d0a /plugins/utils.c
parentb370072a5a1e21876abf8cf95f4622c02565ae07 (diff)
downloadmonitoring-plugins-6eb5be9.tar.gz
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 f11db731..6d366e3d 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"));