diff options
author | wl <wl> | 2009-11-20 05:10:17 +0000 |
---|---|---|
committer | wl <wl> | 2009-11-20 05:10:17 +0000 |
commit | 41fc277cf92f000407375c41050e361c2cafa2af (patch) | |
tree | 06ee3dfc7ba86f9cbe516fbbdd443d07eb8cd7c9 /src | |
parent | 9b3bafd5e2738e4eb45729296461bf42fdeffc4a (diff) | |
download | groff-41fc277cf92f000407375c41050e361c2cafa2af.tar.gz |
* */*.cpp: Replace `printf(string);' with `printf("%s", string);'.
Diffstat (limited to 'src')
-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 |
3 files changed, 4 insertions, 4 deletions
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)); |