diff options
Diffstat (limited to 'pcl/pxl/pxfont.c')
-rw-r--r-- | pcl/pxl/pxfont.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pcl/pxl/pxfont.c b/pcl/pxl/pxfont.c index b7e4013bf..6e3079fac 100644 --- a/pcl/pxl/pxfont.c +++ b/pcl/pxl/pxfont.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 @@ -512,7 +512,7 @@ pxSetFont(px_args_t * par, px_state_t * pxs) { char setstr[26]; /* 64-bit value plus message */ - gs_sprintf(setstr, " : %d", symbol_set); + gs_snprintf(setstr, sizeof(setstr), " : %d", symbol_set); strncat(pxs->error_line, setstr, px_max_error_line - strlen(pxs->error_line)); pxs->error_line[px_max_error_line] = 0; |