Skip to content

Commit 1352c18

Browse files
authored
Merge pull request #7 from bjfish/use-size_t-for-xmalloc
Use size_t for xmalloc
2 parents ff76d25 + 603a3fa commit 1352c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mri/bcrypt_pbkdf_ext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ static VALUE cBCryptPbkdfEngine;
88
*/
99
static VALUE bc_crypt_pbkdf(VALUE self, VALUE pass, VALUE salt, VALUE keylen, VALUE rounds) {
1010
size_t okeylen = NUM2ULONG(keylen);
11-
u_int8_t* okey = xmalloc(keylen);
11+
u_int8_t* okey = xmalloc(okeylen);
1212
VALUE out;
1313

1414
int ret = bcrypt_pbkdf(

0 commit comments

Comments
 (0)