From 9ff4238c2a4f9c95d86a4960a32c80ae725da372 Mon Sep 17 00:00:00 2001 From: yar Date: Tue, 2 Nov 2004 18:48:44 +0000 Subject: 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(-) (limited to 'libexec') diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 3325276..aeeaada 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)); } -- cgit v1.1