From ab19dedf1f034c5cd458966ce034e012bb1d5f02 Mon Sep 17 00:00:00 2001 From: Hamdanil Rasyid Date: Sun, 14 Jul 2013 23:20:43 +0800 Subject: [PATCH] Fix bug when ignoring offset --- SharpCompress/Common/Rar/RarCryptoWrapper.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SharpCompress/Common/Rar/RarCryptoWrapper.cs b/SharpCompress/Common/Rar/RarCryptoWrapper.cs index 28cf79ca..91a93178 100644 --- a/SharpCompress/Common/Rar/RarCryptoWrapper.cs +++ b/SharpCompress/Common/Rar/RarCryptoWrapper.cs @@ -142,9 +142,10 @@ namespace SharpCompress.Common.Rar for (int i = 0; i < count; i++) { - buffer[i] = _data.Dequeue(); + buffer[offset+i] = _data.Dequeue(); Console.Write(buffer[i].ToString("x2") + " "); - } + } + Console.WriteLine(); } return count;