diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2022-02-16 12:18:16 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2022-02-16 14:35:09 +0000 |
commit | 61714df72f24c852a3a23d96fef0392d3fe9ade2 (patch) | |
tree | acd3f9f3e1aa7bbf1df6b240bd6f1bab21fae72e /psi/dmmain.c | |
parent | c39ce3b77d8b9e35e02490ac646001f830b7cae5 (diff) | |
download | ghostpdl-61714df72f24c852a3a23d96fef0392d3fe9ade2.tar.gz |
Move psi/ files from gs_sprintf to gs_snprintf
Diffstat (limited to 'psi/dmmain.c')
-rw-r--r-- | psi/dmmain.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/psi/dmmain.c b/psi/dmmain.c index 1af0d787e..7fee91572 100644 --- a/psi/dmmain.c +++ b/psi/dmmain.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 @@ -640,8 +640,8 @@ void main(void) argv[1] = ddevice; argv[2] = dformat; - gs_sprintf(ddevice, "-sDEVICE=display"); - gs_sprintf(dformat, "-dDisplayFormat=%d", display_format); + gs_snprintf(ddevice, sizeof(ddevice), "-sDEVICE=display"); + gs_snprintf(dformat, sizeof(dformat), "-dDisplayFormat=%d", display_format); /* Run Ghostscript */ if (gsapi_new_instance(&instance, NULL) < 0) |