diff options
| author | joerg <joerg@NetBSD.org> | 2014-01-10 11:29:24 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2014-01-10 11:29:24 +0000 |
| commit | 41ec5a51c23fe429ef9e060e25f8974226529f4d (patch) | |
| tree | 6bea1b7de23d956d2091bb580641fc177db95831 /gnu | |
| parent | 9050c0c404c78bb771a6e2f4b2a388b5d26dc3fe (diff) | |
Use format strings.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/dist/groff/src/devices/grohtml/post-html.cpp | 4 | ||||
| -rw-r--r-- | gnu/dist/groff/src/roff/troff/node.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gnu/dist/groff/src/devices/grohtml/post-html.cpp b/gnu/dist/groff/src/devices/grohtml/post-html.cpp index fbb0e84cae3..c5b268a2f52 100644 --- a/gnu/dist/groff/src/devices/grohtml/post-html.cpp +++ b/gnu/dist/groff/src/devices/grohtml/post-html.cpp @@ -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 @@ void header_desc::write_headings (FILE *f, int force) buffer += as_string(h); buffer += '\0'; - fprintf(f, buffer.contents()); + fprintf(f, "%s", buffer.contents()); } else fputs(g->text_string, f); h++; diff --git a/gnu/dist/groff/src/roff/troff/node.cpp b/gnu/dist/groff/src/roff/troff/node.cpp index b44a4f652b3..e426f429d6f 100644 --- a/gnu/dist/groff/src/roff/troff/node.cpp +++ b/gnu/dist/groff/src/roff/troff/node.cpp @@ -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 @@ void glyph_node::debug_node() 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) |
