From 9ce63a72d59781613a86a8beb7a6fc99b898a9e0 Mon Sep 17 00:00:00 2001 From: jpandre Date: Wed, 17 Jun 2009 08:07:58 +0000 Subject: [PATCH] Fixed a data compression bug causing suboptimal compression --- libntfs-3g/compress.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libntfs-3g/compress.c b/libntfs-3g/compress.c index 07f17fd9..f7fb4311 100644 --- a/libntfs-3g/compress.c +++ b/libntfs-3g/compress.c @@ -164,6 +164,7 @@ static void ntfs_new_node (struct COMPRESS_CONTEXT *pctx, if ((pctx->match_length = i) > mxl) { i = pctx->rson[pp]; pctx->rson[r] = i; + pctx->dad[i] = r; i = pctx->lson[pp]; pctx->lson[r] = i; pctx->dad[i] = r;