Skip to content

Commit

Permalink
Fix for big endian in char conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
abelcheung committed May 9, 2019
1 parent d91a708 commit 5511183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ _advance_char (size_t sz,

case 2:
{
gunichar2 c = *(gunichar2 *) (*in_str);
guint16 c = GUINT16_FROM_LE (*(guint16 *) (*in_str));
repl = g_strdup_printf (tmpl, c);
}
break;
Expand Down

0 comments on commit 5511183

Please sign in to comment.