X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=sshzlib.c;h=9c80132514f1eb9ea057515ab803edccbfcf5c27;hb=12e019bafc75cb441e965c63e15dfceeaf71ca1e;hp=373c77930d7a9ceeddb1ce6969011de9324f4e2a;hpb=ecd50ec3495e38d6998e88e00743f34a6ae8cc61;p=PuTTY.git diff --git a/sshzlib.c b/sshzlib.c index 373c7793..9c801325 100644 --- a/sshzlib.c +++ b/sshzlib.c @@ -224,6 +224,7 @@ static void lz77_compress(struct LZ77Context *ctx, } st->npending -= i; + defermatch.distance = 0; /* appease compiler */ defermatch.len = 0; deferchr = '\0'; while (len > 0) { @@ -698,9 +699,9 @@ int zlib_compress_block(void *handle, unsigned char *block, int len, /* * Start a Deflate (RFC1951) uncompressed block. We - * transmit a zero bit (BFINAL=0), followed by a zero - * bit and a one bit (BTYPE=00). Of course these are in - * the wrong order (00 0). + * transmit a zero bit (BFINAL=0), followed by two more + * zero bits (BTYPE=00). Of course these are in the + * wrong order (00 0), not that it matters. */ outbits(out, 0, 3);