From f590408dfbe9f2fc5a47978efe8198e3069e7bc5 Mon Sep 17 00:00:00 2001
From: pgamba <pgamba@localhost>
Date: Wed, 30 May 2007 07:50:43 +0000
Subject: [PATCH] [Issue 1624]  String index out of range exception during total update

---
 opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java b/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java
index 1f0e567..45d63cc 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java
@@ -89,7 +89,7 @@
       }
       else
       {
-        entryBuffer = new String(b, startOfEntryIndex, len);
+        entryBuffer = new String(b, startOfEntryIndex, bytesToRead);
         break;
       }
     }

--
Gitblit v1.10.0