pkgsrc/security/openpam/patches/patch-ai
2008-02-18 18:22:18 +00:00

13 lines
410 B
Text

$NetBSD: patch-ai,v 1.1 2008/02/18 18:22:18 jlam Exp $
--- lib/pam_start.c.orig 2007-12-21 06:36:24.000000000 -0500
+++ lib/pam_start.c
@@ -58,7 +58,7 @@ pam_start(const char *service,
int r;
ENTER();
- if ((ph = calloc(1, sizeof *ph)) == NULL)
+ if ((ph = calloc((size_t)1, sizeof *ph)) == NULL)
RETURNC(PAM_BUF_ERR);
if ((r = pam_set_item(ph, PAM_SERVICE, service)) != PAM_SUCCESS)
goto fail;