Hello Mark,

Sorry, I totally had example code ready and simply forgot to attach
it.  Hopefully I'll remember this time.

BTW, did the mail to me bounce?  Please respond to
[EMAIL PROTECTED], since sf.net seems to not be forwarding mail
today.

-- 
Clear skies,
Justin
#include <zlib.h>
#include <string.h>
#include <stdlib.h>

int main()
{
	// This buffer size is the minimum which causes the error,
	// compiled with: make LDLIBS+=-lz gz.
	char buf[65274];
	gzFile *f;

	memset(buf, 0, sizeof(buf));
	f=gzopen("/tmp/gztestfile", "wb0");
	gzwrite(f, buf, sizeof(buf));
	gzclose(f);

	exit(EXIT_SUCCESS);
}

Reply via email to