summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpixel <pixel>2004-12-27 18:48:25 +0000
committerpixel <pixel>2004-12-27 18:48:25 +0000
commit248102902168025dbdd1ee618ade6bd0d85a5723 (patch)
treea2044559c3103a9544182601ca04e89daf617c01 /lib
parent59c81e2d1e640b56db41bc5a7b17ae6f2f201b01 (diff)
msvc HAS some nprintfs.... yes, it does.
Diffstat (limited to 'lib')
-rw-r--r--lib/zlib/src/gzio.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/zlib/src/gzio.c b/lib/zlib/src/gzio.c
index 3f534f6..f3c0da2 100644
--- a/lib/zlib/src/gzio.c
+++ b/lib/zlib/src/gzio.c
@@ -5,7 +5,7 @@
* Compile this file with -DNO_DEFLATE to avoid the compression code.
*/
-/* @(#) $Id: gzio.c,v 1.5 2004-11-27 21:46:13 pixel Exp $ */
+/* @(#) $Id: gzio.c,v 1.6 2004-12-27 18:48:25 pixel Exp $ */
#include <stdio.h>
@@ -529,11 +529,7 @@ int ZEXPORTVA gzprintf (gzFile file, const char *format, /* args */ ...)
int len;
va_start(va, format);
-#ifdef HAS_vsnprintf
(void)vsnprintf(buf, sizeof(buf), format, va);
-#else
- (void)vsprintf(buf, format, va);
-#endif
va_end(va);
len = strlen(buf); /* some *sprintf don't return the nb of bytes written */
if (len <= 0) return 0;