From bb4641e28b702a48adbbb7548b4e1b476a9948cb Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Tue, 2 Nov 2004 18:48:44 +0000 Subject: [PATCH] Replace the last occurence of (long long) and %qd with (intmax_t) and %jd, which is the right way to printf an off_t in the presence of . Submitted by: Nick Leuta --- libexec/ftpd/ftpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 33252760f4f..aeeaada6b76 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -3175,9 +3175,9 @@ logxfer(char *name, off_t size, time_t start) if (statfd >= 0 && getwd(path) != NULL) { time(&now); - snprintf(buf, sizeof(buf), "%.20s!%s!%s!%s/%s!%qd!%ld\n", + snprintf(buf, sizeof(buf), "%.20s!%s!%s!%s/%s!%jd!%ld\n", ctime(&now)+4, ident, remotehost, - path, name, (long long)size, + path, name, (intmax_t)size, (long)(now - start + (now == start))); write(statfd, buf, strlen(buf)); }