diff options
author | truckman <truckman@FreeBSD.org> | 2016-03-09 17:40:33 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2016-03-09 17:40:33 +0000 |
commit | 46d6e7eb7fb099dcf7e00b4370939e31fc598a16 (patch) | |
tree | 4103cdb9177c1aabbce85847e3f64e466327b9df | |
parent | ad5b5f3479ba8859cf2333f31f37c6398ab05d67 (diff) | |
download | FreeBSD-src-46d6e7eb7fb099dcf7e00b4370939e31fc598a16.zip FreeBSD-src-46d6e7eb7fb099dcf7e00b4370939e31fc598a16.tar.gz |
MFC r283869 (by araujo)
Fix the wrong format, format specifies type 'int' but the argument has type
'long', it was spotted by clang.
-rw-r--r-- | contrib/diff/src/context.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |