diff options
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")); |