From 9310c7d568363767c06ec1aa2255c313e70f54bc Mon Sep 17 00:00:00 2001 From: Marcelo Araujo Date: Mon, 1 Jun 2015 06:14:17 +0000 Subject: [PATCH] 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(-) diff --git a/contrib/diff/src/context.c b/contrib/diff/src/context.c index 4937ce27d9cc..73bde69cd418 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); }