Skip to content

Commit

Permalink
Fix GCC 14 -Wcalloc-transposed-args
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Feb 13, 2024
1 parent d64ade3 commit d86deee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/auth_pam/auth_pam_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static int conv(int n, const struct pam_message **msg,
freeing it is the responsibility of the caller */
if (*resp == 0)
{
*resp = calloc(sizeof(struct pam_response), n);
*resp = calloc(n, sizeof(struct pam_response));
if (*resp == 0)
return PAM_BUF_ERR;
}
Expand Down

0 comments on commit d86deee

Please sign in to comment.