]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
Fixed printf format errors. Assume that time_t's are representable as
authorBruce Evans <bde@FreeBSD.org>
Sat, 17 Oct 1998 14:06:20 +0000 (14:06 +0000)
committerBruce Evans <bde@FreeBSD.org>
Sat, 17 Oct 1998 14:06:20 +0000 (14:06 +0000)
longs.

chpass/pw_copy.c

index 73e2da22115ce646eb241f9f643a261406e0ea43..d60f75177492ff075ac44a897a548b5c78175747 100644 (file)
@@ -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);