summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-03-29 10:27:10 +0100
committerSam James <sam@gentoo.org>2022-04-17 12:53:05 +0100
commit085bde903b9e684c3c1160e4df912bea9a660997 (patch)
treec4f5e6e9f2422e869ca5bc0b944520d451001282 /devices/gdevl31s.c
parentImport Ghostscript 9.55 (diff)
downloadghostscript-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/gdevl31s.c')
-rw-r--r--devices/gdevl31s.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/devices/gdevl31s.c b/devices/gdevl31s.c
index 8832c13a..5532ec5e 100644
--- a/devices/gdevl31s.c
+++ b/devices/gdevl31s.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
@@ -191,9 +191,9 @@ lj3100sw_print_page_copies(gx_device_printer *pdev, gp_file *prn_stream, int num
if (gdev_prn_file_is_new(pdev)) {
lj3100sw_output_section_header(prn_stream, 1, 0, 0);
lj3100sw_output_repeated_data_bytes(prn_stream, buffer, &ptr, 0x1b, 12);
- ptr += gs_sprintf(ptr, "\r\nBD");
+ ptr += gs_snprintf(ptr, sizeof(buffer) - (ptr - buffer), "\r\nBD");
lj3100sw_output_repeated_data_bytes(prn_stream, buffer, &ptr, 0, 5520);
- ptr += gs_sprintf(ptr, "%s\r\n%s %d\r\n%s %d\r\n%s %d\r\n%s %d\r\n%s %d\r\n%s %d\r\n",
+ ptr += gs_snprintf(ptr, sizeof(buffer) - (ptr - buffer), "%s\r\n%s %d\r\n%s %d\r\n%s %d\r\n%s %d\r\n%s %d\r\n%s %d\r\n",
"NJ",
"PQ", -1,
"RE", high_resolution ? 6 : 2,
@@ -205,7 +205,7 @@ lj3100sw_print_page_copies(gx_device_printer *pdev, gp_file *prn_stream, int num
}
lj3100sw_output_section_header(prn_stream, 3, ppdev->NumCopies, 0);
- ptr += gs_sprintf(ptr, "%s %d\r\n%s\r\n",
+ ptr += gs_snprintf(ptr, sizeof(buffer) - (ptr - buffer), "%s %d\r\n%s\r\n",
"CM", 1,
"PD");
*ptr++ = 0;