summaryrefslogtreecommitdiff
path: root/psi/iparam.c
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2022-02-16 12:18:16 +0000
committerChris Liddell <chris.liddell@artifex.com>2022-02-16 14:35:09 +0000
commit61714df72f24c852a3a23d96fef0392d3fe9ade2 (patch)
treeacd3f9f3e1aa7bbf1df6b240bd6f1bab21fae72e /psi/iparam.c
parentc39ce3b77d8b9e35e02490ac646001f830b7cae5 (diff)
downloadghostpdl-61714df72f24c852a3a23d96fef0392d3fe9ade2.tar.gz
Move psi/ files from gs_sprintf to gs_snprintf
Diffstat (limited to 'psi/iparam.c')
-rw-r--r--psi/iparam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/psi/iparam.c b/psi/iparam.c
index 7fe1cb0d0..c35b516e2 100644
--- a/psi/iparam.c
+++ b/psi/iparam.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
@@ -65,7 +65,7 @@ ref_to_key(const ref * pref, gs_param_key_t * key, iparam_list *plist)
int len;
byte *buf;
- gs_sprintf(istr, "%"PRIpsint, pref->value.intval);
+ gs_snprintf(istr, sizeof(istr), "%"PRIpsint, pref->value.intval);
len = strlen(istr);
/* GC will take care of freeing this: */
buf = gs_alloc_string(plist->memory, len, "ref_to_key");