diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-04-24 13:45:29 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-04-27 15:11:37 +0200 |
commit | 4fe64a86f24b4aa5cb92f35fe025200cf42144ea (patch) | |
tree | 2c9abd8613df7ca07f669f71168bb6b9d60bacbe /source/fitz | |
parent | 99278e762603380638ad037094a955312013e94c (diff) | |
download | mupdf-4fe64a86f24b4aa5cb92f35fe025200cf42144ea.tar.xz |
Use fz_snprintf.
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/output-pcl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/output-pcl.c b/source/fitz/output-pcl.c index e26b8c34..99cc819f 100644 --- a/source/fitz/output-pcl.c +++ b/source/fitz/output-pcl.c @@ -345,7 +345,7 @@ make_init(fz_pcl_options *pcl, char *buf, unsigned long len, const char *str, in { int paper_source = -1; - snprintf(buf, len, str, res); + fz_snprintf(buf, len, str, res); if (pcl->manual_feed_set && pcl->manual_feed) paper_source = 2; @@ -354,7 +354,7 @@ make_init(fz_pcl_options *pcl, char *buf, unsigned long len, const char *str, in if (paper_source >= 0) { char buf2[40]; - snprintf(buf2, sizeof(buf2), "\033&l%dH", paper_source); + fz_snprintf(buf2, sizeof(buf2), "\033&l%dH", paper_source); strncat(buf, buf2, len); } } |