Fixed ArrayIndexOutOfBoundsException reported by @mubaldino due to the prefixBuf array not growing sufficiently large.