Skip to content

Commit

Permalink
bugfix in fmt_digest (conversion to UTF8)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Oct 24, 2017
1 parent 7fd9f01 commit 1c3d62e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/fmt/fmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ static void md5_finish( md5_context *ctx, uint8 digest[16] ) {
HL_PRIM void HL_NAME(digest)( vbyte *out, vbyte *in, int length, int format ) {
if( format & 256 ) {
in = hl_to_utf8((uchar*)in);
length = hl_utf8_length(in, 0);
length = strlen((char*)in);
}
switch( format & 0xFF ) {
case 0:
Expand Down

0 comments on commit 1c3d62e

Please sign in to comment.