From 21a8ef9729b09cc6947bd96c74d53c0e7bce7479 Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au>
Date: Thu, 24 Jan 2013 19:28:22 +1100
Subject: [PATCH] Fix AIOOBE

---
 CraftBukkit-Patches/0021-Add-oreobfuscator-for-Spigot.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CraftBukkit-Patches/0021-Add-oreobfuscator-for-Spigot.patch b/CraftBukkit-Patches/0021-Add-oreobfuscator-for-Spigot.patch
index 7f0b36c6a..320a3140c 100644
--- a/CraftBukkit-Patches/0021-Add-oreobfuscator-for-Spigot.patch
+++ b/CraftBukkit-Patches/0021-Add-oreobfuscator-for-Spigot.patch
@@ -209,7 +209,7 @@ index 0000000..1ac8c26
 +                                        buffer[index] = (byte) Block.STONE.id;
 +                                    }
 +                                }
-+                                if (++index > buffer.length) {
++                                if (++index >= buffer.length) {
 +                                    return;
 +                                }
 +                            }