diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/devices/grohtml/post-html.cpp | 2 | ||||
-rw-r--r-- | src/roff/troff/node.cpp | 2 | ||||
-rw-r--r-- | src/utils/hpftodit/hpftodit.cpp | 4 |
4 files changed, 8 insertions, 4 deletions
@@ -1,3 +1,7 @@ +2009-11-20 Paulo Ricardo Zanoni <pzanoni@mandriva.com> + + * */*.cpp: Replace `printf(string);' with `printf("%s", string);'. + 2009-10-28 Werner LEMBERG <wl@gnu.org> Document limitations with `#' characters, tbl, and eqn. diff --git a/src/devices/grohtml/post-html.cpp b/src/devices/grohtml/post-html.cpp index 7f19820b..759831a0 100644 --- a/src/devices/grohtml/post-html.cpp +++ b/src/devices/grohtml/post-html.cpp @@ -1588,7 +1588,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/src/roff/troff/node.cpp b/src/roff/troff/node.cpp index 5136d5aa..48ec00f3 100644 --- a/src/roff/troff/node.cpp +++ b/src/roff/troff/node.cpp @@ -2204,7 +2204,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) diff --git a/src/utils/hpftodit/hpftodit.cpp b/src/utils/hpftodit/hpftodit.cpp index 59f772f5..9b000aaa 100644 --- a/src/utils/hpftodit/hpftodit.cpp +++ b/src/utils/hpftodit/hpftodit.cpp @@ -870,9 +870,9 @@ output_charset(const int tfm_type) else if (!all_flag) continue; else if (tfm_type == MSL) - printf(hp_msl_to_ucode_name(charcode)); + printf("%s", hp_msl_to_ucode_name(charcode)); else - printf(unicode_to_ucode_name(charcode)); + printf("%s", unicode_to_ucode_name(charcode)); printf("\t%d,%d", scale(char_table[i].width), scale(char_table[i].ascent)); |