5,7 → 5,7 |
* Compile this file with -DNO_DEFLATE to avoid the compression code. |
*/ |
|
/* @(#) $Id: gzio.c,v 1.2 2003-03-20 14:58:29 giacomo Exp $ */ |
/* @(#) $Id: gzio.c,v 1.1 2003-03-20 13:08:10 giacomo Exp $ */ |
|
#include <stdio.h> |
|
530,11 → 530,10 |
|
va_start(va, format); |
#ifdef HAS_vsnprintf |
//(void)vsnprintf(buf, sizeof(buf), format, va); |
(void)vsnprintf(buf, sizeof(buf), format, va); |
#else |
//(void)vsprintf(buf, format, va); |
(void)vsprintf(buf, format, va); |
#endif |
sprintf(buf,format); |
va_end(va); |
len = strlen(buf); /* some *sprintf don't return the nb of bytes written */ |
if (len <= 0) return 0; |