Skip to content

Commit

Permalink
fix -1 string buffer length
Browse files Browse the repository at this point in the history
  • Loading branch information
mkristian committed Dec 19, 2014
1 parent 6d7b77d commit 12c8cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jruby/ext/openssl/StringHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ static StringBuilder lowerHexBytes(final byte[] bytes, final int offset) {
if ( h.length() == 1 ) hex.append('0');
hex.append( h ).append(':');
}
if ( len > 0 ) hex.setLength( hex.length() - 1 );
if ( hex.length() > 0 ) hex.setLength( hex.length() - 1 );
return hex;
}

Expand Down

0 comments on commit 12c8cfe

Please sign in to comment.