From e7da82f332f13f386304b0cb5964b817d940d802 Mon Sep 17 00:00:00 2001 From: markt Date: Thu, 25 Aug 2011 13:06:04 +0000 Subject: [PATCH] Correct message git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1161549 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/coyote/ajp/AjpMessage.java | 2 +- java/org/apache/coyote/ajp/LocalStrings.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java/org/apache/coyote/ajp/AjpMessage.java b/java/org/apache/coyote/ajp/AjpMessage.java index 08dbfca6a..5bfd1a1b6 100644 --- a/java/org/apache/coyote/ajp/AjpMessage.java +++ b/java/org/apache/coyote/ajp/AjpMessage.java @@ -398,7 +398,7 @@ public class AjpMessage { if (posToTest > len + 4) { // Trying to read data beyond the end of the AJP message throw new ArrayIndexOutOfBoundsException(sm.getString( - "ajpMessage.invalidPos", Integer.valueOf(pos))); + "ajpMessage.invalidPos", Integer.valueOf(posToTest))); } } // ------------------------------------------------------ Protected Methods diff --git a/java/org/apache/coyote/ajp/LocalStrings.properties b/java/org/apache/coyote/ajp/LocalStrings.properties index f1b5b6610..c00a79d06 100644 --- a/java/org/apache/coyote/ajp/LocalStrings.properties +++ b/java/org/apache/coyote/ajp/LocalStrings.properties @@ -46,5 +46,5 @@ ajpmessage.overflow=Overflow error for buffer adding {0} bytes at position {1} ajpmessage.read=Requested {0} bytes exceeds message available data ajpmessage.invalid=Invalid message received with signature {0} ajpmessage.invalidLength=Invalid message received with length {0} -ajpMessage.invalidPos=Requested read of bytes at position [{0}] which is beyond then end of the AJP message +ajpMessage.invalidPos=Requested read of bytes at position [{0}] which is beyond the end of the AJP message -- 2.11.0