From daffec628c954a2fb752441e3e2d17b0530f4e40 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sat, 17 Oct 1998 14:06:20 +0000 Subject: Fixed printf format errors. Assume that time_t's are representable as longs. --- chpass/pw_copy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chpass/pw_copy.c b/chpass/pw_copy.c index 73e2da2..d60f751 100644 --- a/chpass/pw_copy.c +++ b/chpass/pw_copy.c @@ -66,8 +66,8 @@ pw_copy(ffd, tfd, pw) snprintf(uidstr, sizeof(uidstr), "%d", pw->pw_uid); snprintf(gidstr, sizeof(gidstr), "%d", pw->pw_gid); - snprintf(chgstr, sizeof(chgstr), "%ld", pw->pw_change); - snprintf(expstr, sizeof(expstr), "%ld", pw->pw_expire); + snprintf(chgstr, sizeof(chgstr), "%ld", (long)pw->pw_change); + snprintf(expstr, sizeof(expstr), "%ld", (long)pw->pw_expire); if (!(from = fdopen(ffd, "r"))) pw_error(_PATH_MASTERPASSWD, 1, 1); -- cgit v1.2.3