Skip to content

Commit 12c8cfe

Browse files
committed
fix -1 string buffer length
1 parent 6d7b77d commit 12c8cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jruby/ext/openssl/StringHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ static StringBuilder lowerHexBytes(final byte[] bytes, final int offset) {
155155
if ( h.length() == 1 ) hex.append('0');
156156
hex.append( h ).append(':');
157157
}
158-
if ( len > 0 ) hex.setLength( hex.length() - 1 );
158+
if ( hex.length() > 0 ) hex.setLength( hex.length() - 1 );
159159
return hex;
160160
}
161161

0 commit comments

Comments
 (0)