Correct message
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 25 Aug 2011 13:06:04 +0000 (13:06 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 25 Aug 2011 13:06:04 +0000 (13:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1161549 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/ajp/AjpMessage.java
java/org/apache/coyote/ajp/LocalStrings.properties

index 08dbfca..5bfd1a1 100644 (file)
@@ -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
index f1b5b66..c00a79d 100644 (file)
@@ -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