Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/groff/src Use format strings.



details:   https://anonhg.NetBSD.org/src/rev/527bffe312ff
branches:  trunk
changeset: 325874:527bffe312ff
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Jan 10 11:29:24 2014 +0000

description:
Use format strings.

diffstat:

 gnu/dist/groff/src/devices/grohtml/post-html.cpp |  4 ++--
 gnu/dist/groff/src/roff/troff/node.cpp           |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 54fc369daad4 -r 527bffe312ff gnu/dist/groff/src/devices/grohtml/post-html.cpp
--- a/gnu/dist/groff/src/devices/grohtml/post-html.cpp  Fri Jan 10 11:12:03 2014 +0000
+++ b/gnu/dist/groff/src/devices/grohtml/post-html.cpp  Fri Jan 10 11:29:24 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: post-html.cpp,v 1.1.1.3 2006/02/06 18:14:50 wiz Exp $  */
+/*     $NetBSD: post-html.cpp,v 1.2 2014/01/10 11:29:24 joerg Exp $    */
 
 // -*- C++ -*-
 /* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005
@@ -1589,7 +1589,7 @@
 
          buffer += as_string(h);
          buffer += '\0';
-         fprintf(f, buffer.contents());
+         fprintf(f, "%s", buffer.contents());
        } else
          fputs(g->text_string, f);
        h++;
diff -r 54fc369daad4 -r 527bffe312ff gnu/dist/groff/src/roff/troff/node.cpp
--- a/gnu/dist/groff/src/roff/troff/node.cpp    Fri Jan 10 11:12:03 2014 +0000
+++ b/gnu/dist/groff/src/roff/troff/node.cpp    Fri Jan 10 11:29:24 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: node.cpp,v 1.2 2012/01/06 15:16:03 joerg Exp $ */
+/*     $NetBSD: node.cpp,v 1.3 2014/01/10 11:29:24 joerg Exp $ */
 
 // -*- C++ -*-
 /* Copyright (C) 1989, 1990, 1991, 1992, 2000, 2001, 2002, 2003, 2004, 2005
@@ -2159,7 +2159,7 @@
   if (c)
     fprintf(stderr, "%c", c);
   else
-    fprintf(stderr, ci->nm.contents());
+    fprintf(stderr, "%s", ci->nm.contents());
   if (push_state)
     fprintf(stderr, " <push_state>");
   if (state)



Home | Main Index | Thread Index | Old Index