Module Name:    src
Committed By:   joerg
Date:           Mon May 23 22:17:50 UTC 2011

Modified Files:
        src/gnu/dist/diffutils/src: diff3.c

Log Message:
Avoid using a variable as format string.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/gnu/dist/diffutils/src/diff3.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/gnu/dist/diffutils/src/diff3.c
diff -u src/gnu/dist/diffutils/src/diff3.c:1.1.1.1 src/gnu/dist/diffutils/src/diff3.c:1.2
--- src/gnu/dist/diffutils/src/diff3.c:1.1.1.1	Sun Jan 26 00:43:17 2003
+++ src/gnu/dist/diffutils/src/diff3.c	Mon May 23 22:17:50 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: diff3.c,v 1.1.1.1 2003/01/26 00:43:17 wiz Exp $	*/
+/*	$NetBSD: diff3.c,v 1.2 2011/05/23 22:17:50 joerg Exp $	*/
 
 /* diff3 - compare three files line by line
 
@@ -1404,7 +1404,7 @@
 	      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);

Reply via email to