From 7514aede06f29e61f595665244c3a2cb6cd89ab9 Mon Sep 17 00:00:00 2001
From: Rene Brun <Rene.Brun@cern.ch>
Date: Tue, 9 Oct 2007 09:57:18 +0000
Subject: [PATCH] From Leo: Fix a small bug when resizing buffers smaller than
 10KB to an acceptable size (spotted by Fabrizio Furano).

git-svn-id: http://root.cern.ch/svn/root/trunk@20273 27541ba8-7e3a-0410-8455-c3a389f83636
---
 io/src/TFileCacheRead.cxx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/io/src/TFileCacheRead.cxx b/io/src/TFileCacheRead.cxx
index bde064fe2fa..849673dcf14 100644
--- a/io/src/TFileCacheRead.cxx
+++ b/io/src/TFileCacheRead.cxx
@@ -64,8 +64,9 @@ TFileCacheRead::TFileCacheRead(TFile *file, Int_t buffersize)
    // Creates a TFileCacheRead data structure.
 
    if (buffersize <=10000) fBufferSize = 100000;
-   fBufferSizeMin = buffersize;
-   fBufferSize  = buffersize;
+   else fBufferSize = buffersize;
+
+   fBufferSizeMin = fBufferSize;
    fBufferLen   = 0;
    fNseek       = 0;
    fNtot        = 0;
-- 
GitLab