diff3: Use a format string to quiet a compiler warning

And bump WARNS to 2
This commit is contained in:
Ed Maste
2025-11-18 08:21:03 -05:00
parent 08208cd694
commit fd52a9becc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1405,7 +1405,7 @@ output_diff3 (FILE *outputfile, struct diff3_block *diff,
line = 0;
do
{
fprintf (outputfile, line_prefix);
fprintf (outputfile, "%s", line_prefix);
cp = D_RELNUM (ptr, realfile, line);
length = D_RELLEN (ptr, realfile, line);
fwrite (cp, sizeof (char), length, outputfile);
+1 -1
View File
@@ -17,6 +17,6 @@ CFLAGS+=-I${SRCTOP}/contrib/diff/lib
CFLAGS+=-DHAVE_CONFIG_H
CFLAGS+=-DDEFAULT_DIFF_PROGRAM=\"/usr/bin/diff\"
WARNS?= 0
WARNS?= 2
.include <bsd.prog.mk>