Commit d86deee3 authored by Marko Mäkelä's avatar Marko Mäkelä

Fix GCC 14 -Wcalloc-transposed-args

parent d64ade30
...@@ -99,7 +99,7 @@ static int conv(int n, const struct pam_message **msg, ...@@ -99,7 +99,7 @@ static int conv(int n, const struct pam_message **msg,
freeing it is the responsibility of the caller */ freeing it is the responsibility of the caller */
if (*resp == 0) if (*resp == 0)
{ {
*resp = calloc(sizeof(struct pam_response), n); *resp = calloc(n, sizeof(struct pam_response));
if (*resp == 0) if (*resp == 0)
return PAM_BUF_ERR; return PAM_BUF_ERR;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment