diff options
author | 2022-03-29 10:27:10 +0100 | |
---|---|---|
committer | 2022-04-17 12:53:05 +0100 | |
commit | 085bde903b9e684c3c1160e4df912bea9a660997 (patch) | |
tree | c4f5e6e9f2422e869ca5bc0b944520d451001282 /devices/vector/gdevpdfo.c | |
parent | Import Ghostscript 9.55 (diff) | |
download | ghostscript-gpl-patches-085bde903b9e684c3c1160e4df912bea9a660997.tar.gz ghostscript-gpl-patches-085bde903b9e684c3c1160e4df912bea9a660997.tar.bz2 ghostscript-gpl-patches-085bde903b9e684c3c1160e4df912bea9a660997.zip |
Import Ghostscript 9.56.0ghostscript-9.56
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'devices/vector/gdevpdfo.c')
-rw-r--r-- | devices/vector/gdevpdfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/devices/vector/gdevpdfo.c b/devices/vector/gdevpdfo.c index a1c18012..3ec00f5e 100644 --- a/devices/vector/gdevpdfo.c +++ b/devices/vector/gdevpdfo.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 @@ -701,7 +701,7 @@ cos_array_add_int(cos_array_t *pca, int i) char str[sizeof(int) * 8 / 3 + 3]; /* sign, rounding, 0 terminator */ cos_value_t v; - gs_sprintf(str, "%d", i); + gs_snprintf(str, sizeof(str), "%d", i); return cos_array_add(pca, cos_string_value(&v, (byte *)str, strlen(str))); } int @@ -1380,7 +1380,7 @@ cos_dict_put_c_key_int(cos_dict_t *pcd, const char *key, int value) { char str[sizeof(int) * 8 / 3 + 3]; /* sign, rounding, 0 terminator */ - gs_sprintf(str, "%d", value); + gs_snprintf(str, sizeof(str), "%d", value); return cos_dict_put_c_key_string(pcd, key, (byte *)str, strlen(str)); } int |