diff options
Diffstat (limited to 'base/write_t2.c')
-rw-r--r-- | base/write_t2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/write_t2.c b/base/write_t2.c index e56423d4..f35cd5c9 100644 --- a/base/write_t2.c +++ b/base/write_t2.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 @@ -70,7 +70,7 @@ write_type2_float(gs_fapi_font * a_fapi_font, WRF_output * a_output, float a_flo int high = true; char c = 0; - gs_sprintf(buffer, "%f", a_float); + gs_snprintf(buffer, sizeof(buffer), "%f", a_float); WRF_wbyte(a_fapi_font->memory, a_output, 30); for (;;) { char n = 0; |