summaryrefslogtreecommitdiff
path: root/pcl/pl
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2022-02-16 14:55:26 +0000
committerChris Liddell <chris.liddell@artifex.com>2022-02-16 15:17:24 +0000
commit34ad543a8b1cb407b222777582ca5793fd822fd2 (patch)
treeefe5805d11b46b0c115ed3224295cfe706c283d9 /pcl/pl
parente1138358702082567ee04fabb8645cb0a69e5a93 (diff)
downloadghostpdl-34ad543a8b1cb407b222777582ca5793fd822fd2.tar.gz
Move pcl/ sources away from gs_sprintf to gs_snprintf
Diffstat (limited to 'pcl/pl')
-rw-r--r--pcl/pl/pjparse.c2
-rw-r--r--pcl/pl/plmain.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/pcl/pl/pjparse.c b/pcl/pl/pjparse.c
index 287c13d0e..fd35361f4 100644
--- a/pcl/pl/pjparse.c
+++ b/pcl/pl/pjparse.c
@@ -326,7 +326,7 @@ pjl_side_effects(pjl_parser_state_t * pst, char *variable, char *value,
int formlines = pjl_calc_formlines_new_page_size(page_length);
char text[32];
- gs_sprintf(text, "%d", formlines);
+ gs_snprintf(text, sizeof(text), "%d", formlines);
pjl_set(pst, (char *)"FORMLINES", text, defaults);
}
/* fill in other side effects here */
diff --git a/pcl/pl/plmain.c b/pcl/pl/plmain.c
index ae33903a8..12a85fa9b 100644
--- a/pcl/pl/plmain.c
+++ b/pcl/pl/plmain.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -3093,7 +3093,7 @@ pl_finish_page(pl_main_instance_t * pmi, gs_gstate * pgs, int num_copies, int fl
if (pmi->pause) {
char strbuf[256];
- gs_sprintf(strbuf, "End of page %d, press <enter> to continue.\n",
+ gs_snprintf(strbuf, sizeof(strbuf), "End of page %d, press <enter> to continue.\n",
pdev->PageCount);
pl_log_string(pmi->memory, strbuf, 1);
} else if (gs_debug_c(':'))