From cab7352dc71048f130a7d4e0b7fd773909761133 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Mon, 22 Dec 2025 07:45:31 -0800 Subject: Update the link for an snprintf/vsnprintf implementation in FAQ. Point to a modern, well-supported implementation, for use when the compiler chain in use does not provide those functions, and a secure alternative to sprintf/vsprintf for the gz functions is desired. --- FAQ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FAQ b/FAQ index f72cac6..df12668 100644 --- a/FAQ +++ b/FAQ @@ -269,9 +269,9 @@ The latest zlib FAQ is at http://zlib.net/zlib_faq.html sprintf() is used by gzprintf(). If you don't have snprintf() or vsnprintf() and would like one, you can - find a portable implementation here: + find a good portable implementation in stb_sprintf.h here: - http://www.ijs.si/software/snprintf/ + https://github.com/nothings/stb Note that you should be using the most recent version of zlib. Versions 1.1.3 and before were subject to a double-free vulnerability, and versions -- cgit v1.2.3-55-g6feb