From 3f5fa5a6f7316c1633b4df6b94f9204e57e8d1b9 Mon Sep 17 00:00:00 2001 From: araujo Date: Mon, 1 Jun 2015 06:14:17 +0000 Subject: Fix the wrong format, format specifies type 'int' but the argument has type 'long', it was spotted by clang. Differential Revision: D2663 Reviewed by: imp, rodrigc --- contrib/diff/src/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/diff/src') diff --git a/contrib/diff/src/context.c b/contrib/diff/src/context.c index 4937ce2..73bde69 100644 --- a/contrib/diff/src/context.c +++ b/contrib/diff/src/context.c @@ -62,7 +62,7 @@ print_context_label (char const *mark, { time_t sec = inf->stat.st_mtime; verify (info_preserved, sizeof inf->stat.st_mtime <= sizeof sec); - sprintf (buf, "%jd.%.9d", (intmax_t)sec, nsec); + sprintf (buf, "%jd.%.9ld", (intmax_t)sec, nsec); } fprintf (outfile, "%s %s\t%s\n", mark, inf->name, buf); } -- cgit v1.1