Skip to content
Snippets Groups Projects
Commit 79b5c5ac authored by Mark Adler's avatar Mark Adler
Browse files

Use snprintf() for later versions of Microsoft C.

parent ee7d7b5d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -103,11 +103,10 @@
# endif
#endif
 
/* unlike snprintf (which is required in C99, yet still not supported by
Microsoft more than a decade later!), _snprintf does not guarantee null
termination of the result -- however this is only used in gzlib.c where
/* unlike snprintf (which is required in C99), _snprintf does not guarantee
null termination of the result -- however this is only used in gzlib.c where
the result is assured to fit in the space provided */
#ifdef _MSC_VER
#if defined(_MSC_VER) && _MSC_VER < 1900
# define snprintf _snprintf
#endif
 
Loading
Loading
Loading
Loading
@@ -40,7 +40,7 @@
# define SET_BINARY_MODE(file)
#endif
 
#ifdef _MSC_VER
#if defined(_MSC_VER) && _MSC_VER < 1900
# define snprintf _snprintf
#endif
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment