X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/52912ff34e5921714d1b7537a5fb4003fcdb2424..ec9bb1efeca746fa659a4210725c39d415a06d61:/sshzlib.c 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);