From 4fe64a86f24b4aa5cb92f35fe025200cf42144ea Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 24 Apr 2017 13:45:29 +0200 Subject: Use fz_snprintf. --- source/fitz/output-pcl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/fitz') 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); } } -- cgit v1.2.3