From 9e9a37f4ac097e2571a172b569edbda807179eb9 Mon Sep 17 00:00:00 2001 From: Chris Liddell Date: Fri, 6 May 2022 15:54:41 +0100 Subject: Remove gs_sprintf() We've standardised on using gs_snprintf() to keep coverity from complaining about overflowing the interim buffer size. Remove the definition of gs_sprintf() to avoid mistakenly using it in the future --- base/gssprintf.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'base/gssprintf.h') diff --git a/base/gssprintf.h b/base/gssprintf.h index 0b5f6d3dd..961a68b9f 100644 --- a/base/gssprintf.h +++ b/base/gssprintf.h @@ -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 @@ -27,9 +27,6 @@ gs_snprintf(char *zBuf, int n, const char *zFormat, ...); int gs_vsprintf(char *zBuf, const char *zFormat, va_list ap); -int -gs_sprintf(char *zBuf, const char *zFormat, ...); - int gs_sscanf(char *buf, const char *format, ...); #endif -- cgit v1.2.1