diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/digest/digest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/digest/digest.c b/ext/digest/digest.c index 4d185a8e5d..c603441409 100644 --- a/ext/digest/digest.c +++ b/ext/digest/digest.c @@ -99,7 +99,7 @@ hexencode_str_new(VALUE str_digest) rb_raise(rb_eRuntimeError, "digest string too long"); } - str = rb_str_new(0, digest_len * 2); + str = rb_usascii_str_new(0, digest_len * 2); for (i = 0, p = RSTRING_PTR(str); i < digest_len; i++) { unsigned char byte = digest[i]; |