summaryrefslogtreecommitdiffstats
path: root/lib/libpam
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-04-14 16:44:04 +0000
committerdes <des@FreeBSD.org>2002-04-14 16:44:04 +0000
commit0559ebe0fd6ed993e11e306ef21ed5a9cb6da7f9 (patch)
tree7ff4f43f3b5bd26360ed6715d2bb6afec1d47174 /lib/libpam
parentfca05c56784092717e7def263b7851fc9b93a36e (diff)
downloadFreeBSD-src-0559ebe0fd6ed993e11e306ef21ed5a9cb6da7f9.zip
FreeBSD-src-0559ebe0fd6ed993e11e306ef21ed5a9cb6da7f9.tar.gz
Cast a ptrdiff_t to int before using it as a printf field width.
Diffstat (limited to 'lib/libpam')
-rw-r--r--lib/libpam/libpam/pam_debug_log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpam/libpam/pam_debug_log.c b/lib/libpam/libpam/pam_debug_log.c
index c354984..c3fe8e3 100644
--- a/lib/libpam/libpam/pam_debug_log.c
+++ b/lib/libpam/libpam/pam_debug_log.c
@@ -53,8 +53,8 @@ _pam_verbose_error(pam_handle_t *pamh, int flags,
if (period == NULL)
period = strchr(modname, '\0');
va_start(ap, format);
- asprintf(&fmtbuf, "%.*s: %s: %s\n", period - modname, modname,
- function, format);
+ asprintf(&fmtbuf, "%.*s: %s: %s\n", (int)(period - modname),
+ modname, function, format);
pam_verror(pamh, fmtbuf, ap);
free(fmtbuf);
va_end(ap);
OpenPOWER on IntegriCloud