svn commit: r283869 - head/contrib/diff/src

Marcelo Araujo araujo at FreeBSD.org
Mon Jun 1 06:14:18 UTC 2015


Author: araujo (ports committer)
Date: Mon Jun  1 06:14:17 2015
New Revision: 283869
URL: https://svnweb.freebsd.org/changeset/base/283869

Log:
  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

Modified:
  head/contrib/diff/src/context.c

Modified: head/contrib/diff/src/context.c
==============================================================================
--- head/contrib/diff/src/context.c	Mon Jun  1 06:05:53 2015	(r283868)
+++ head/contrib/diff/src/context.c	Mon Jun  1 06:14:17 2015	(r283869)
@@ -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);
     }


More information about the svn-src-head mailing list