diff options
Diffstat (limited to 'src/org/traccar/helper')
-rw-r--r-- | src/org/traccar/helper/ChannelBufferTools.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/helper/ChannelBufferTools.java b/src/org/traccar/helper/ChannelBufferTools.java index 0de07610d..09e3d5191 100644 --- a/src/org/traccar/helper/ChannelBufferTools.java +++ b/src/org/traccar/helper/ChannelBufferTools.java @@ -30,13 +30,13 @@ public class ChannelBufferTools { public static Integer find( ChannelBuffer buf, Integer start, - Integer length, + Integer finish, String subString) { int index = start; boolean match; - for (; index < length; index++) { + for (; index < finish; index++) { match = true; for (int i = 0; i < subString.length(); i++) { |