diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-03-15 17:26:52 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-03-22 12:07:26 +0100 |
commit | 8e791ab5cd73dc783aded93f2dd7c77d89623fe8 (patch) | |
tree | b96eb72513bf2dd89517cd59efee051b7b2a5286 /source/fitz/output-pcl.c | |
parent | cfb66cd25bbf31857b471735e5ff0f7c2aea4d3c (diff) | |
download | mupdf-8e791ab5cd73dc783aded93f2dd7c77d89623fe8.tar.xz |
Always use %g for short-as-possible format character.
Call fz_append_string instead of fz_append_printf for static strings.
Call fz_write_string instead of fz_write_printf for static strings.
Diffstat (limited to 'source/fitz/output-pcl.c')
-rw-r--r-- | source/fitz/output-pcl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/fitz/output-pcl.c b/source/fitz/output-pcl.c index ab95f6aa..e26b8c34 100644 --- a/source/fitz/output-pcl.c +++ b/source/fitz/output-pcl.c @@ -736,7 +736,7 @@ color_pcl_write_header(fz_context *ctx, fz_band_writer *writer_) /* Raster presentation */ /* Print in orientation of the logical page */ - fz_write_printf(ctx, out, "\033&r0F"); + fz_write_string(ctx, out, "\033&r0F"); /* Set color mode */ fz_write_data(ctx, out, "\033*v6W" @@ -762,11 +762,11 @@ color_pcl_write_header(fz_context *ctx, fz_band_writer *writer_) /* start raster graphics */ /* 0 = start at default left graphics margin */ - fz_write_printf(ctx, out, "\033*r0A"); + fz_write_string(ctx, out, "\033*r0A"); /* Now output the actual bitmap */ /* Adaptive Compression */ - fz_write_printf(ctx, out, "\033*b5M"); + fz_write_string(ctx, out, "\033*b5M"); } static void @@ -921,7 +921,7 @@ color_pcl_write_trailer(fz_context *ctx, fz_band_writer *writer_) } /* End Raster Graphics */ - fz_write_printf(ctx, out, "\033*rC"); + fz_write_string(ctx, out, "\033*rC"); } static void |