diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2022-02-16 12:06:00 +0000 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2022-02-16 13:12:45 +0000 |
commit | ed2ac2264e1e0dd75f3570b5de6f2de3919313fd (patch) | |
tree | 3a0f2c76ed83096cb1b313137dde56d58f85ceb8 /base/sjbig2.c | |
parent | 35927b3f78d80ce8e5a0f330ffa46aec5a5634ae (diff) | |
download | ghostpdl-ed2ac2264e1e0dd75f3570b5de6f2de3919313fd.tar.gz |
Move base files away from gs_sprintf to gs_snprintf.
Diffstat (limited to 'base/sjbig2.c')
-rw-r--r-- | base/sjbig2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/sjbig2.c b/base/sjbig2.c index 915269db5..e91a28177 100644 --- a/base/sjbig2.c +++ b/base/sjbig2.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 @@ -63,7 +63,7 @@ s_jbig2decode_error(void *callback_data, const char *msg, Jbig2Severity severity default: type = "unknown message:"; break;; } if (seg_idx == JBIG2_UNKNOWN_SEGMENT_NUMBER) segment[0] = '\0'; - else gs_sprintf(segment, "(segment 0x%02x)", seg_idx); + else gs_snprintf(segment, sizeof(segment), "(segment 0x%02x)", seg_idx); if (error_data) { |