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

13 lines
452 B
Text

$NetBSD: patch-aj,v 1.1 2008/02/18 18:22:18 jlam Exp $
--- lib/pam_vprompt.c.orig 2007-12-21 06:36:24.000000000 -0500
+++ lib/pam_vprompt.c
@@ -73,7 +73,7 @@ pam_vprompt(const pam_handle_t *pamh,
openpam_log(PAM_LOG_ERROR, "no conversation function");
RETURNC(PAM_SYSTEM_ERR);
}
- vsnprintf(msgbuf, PAM_MAX_MSG_SIZE, fmt, ap);
+ vsnprintf(msgbuf, (size_t)PAM_MAX_MSG_SIZE, fmt, ap);
msg.msg_style = style;
msg.msg = msgbuf;
msgp = &msg;