Skip to content

Commit 85daf80

Browse files
committed
Fix typo in variable name.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@798428 13f79535-47bb-0310-9956-ffa450edef68
1 parent 00e0305 commit 85daf80

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/java/org/apache/commons/codec/net/RFC1522Codec.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ protected String decodeText(final String text)
118118
if ((!text.startsWith(PREFIX)) || (!text.endsWith(POSTFIX))) {
119119
throw new DecoderException("RFC 1522 violation: malformed encoded content");
120120
}
121-
int termnator = text.length() - 2;
121+
int terminator = text.length() - 2;
122122
int from = 2;
123123
int to = text.indexOf(SEP, from);
124-
if (to == termnator) {
124+
if (to == terminator) {
125125
throw new DecoderException("RFC 1522 violation: charset token not found");
126126
}
127127
String charset = text.substring(from, to);
@@ -130,7 +130,7 @@ protected String decodeText(final String text)
130130
}
131131
from = to + 1;
132132
to = text.indexOf(SEP, from);
133-
if (to == termnator) {
133+
if (to == terminator) {
134134
throw new DecoderException("RFC 1522 violation: encoding token not found");
135135
}
136136
String encoding = text.substring(from, to);

0 commit comments

Comments
 (0)