summaryrefslogtreecommitdiff
path: root/security/openpam/patches/patch-ah
blob: b75a5e740a24036983e285b8d88264d88b4bb262 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ah,v 1.1 2008/02/18 18:22:18 jlam Exp $

--- lib/pam_putenv.c.orig	2007-12-21 06:36:24.000000000 -0500
+++ lib/pam_putenv.c
@@ -65,7 +65,7 @@ pam_putenv(pam_handle_t *pamh,
 		RETURNC(PAM_SYSTEM_ERR);
 
 	/* see if the variable is already in the environment */
-	if ((i = openpam_findenv(pamh, namevalue, p - namevalue)) >= 0) {
+	if ((i = openpam_findenv(pamh, namevalue, (size_t)(p - namevalue))) >= 0) {
 		if ((p = strdup(namevalue)) == NULL)
 			RETURNC(PAM_BUF_ERR);
 		FREE(pamh->env[i]);