Skip to content

Commit

Permalink
Merge pull request #164 from besser82/libxcrypt
Browse files Browse the repository at this point in the history
bcrypt_ext: Add compatibility with libxcrypt
  • Loading branch information
tenderlove committed May 11, 2018
2 parents f5c3e4f + 92f33ae commit 5c2d2d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/mri/bcrypt_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static VALUE bc_crypt(VALUE self, VALUE key, VALUE setting) {

if(!value) return Qnil;

out = rb_str_new(data, size - 1);
out = rb_str_new2(value);

xfree(data);

Expand Down

0 comments on commit 5c2d2d3

Please sign in to comment.