Another cut-and-pasteo - UCS-4/UTF-32 should fetch 4-byte characters.

Change-Id: Iff4a659cb0d0062cc149f451e49474c8db4143cd
Reviewed-on: https://code.wireshark.org/review/1292
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2014-04-22 21:44:31 -07:00
parent 0f90397d29
commit 8ab1c804d7
1 changed files with 2 additions and 2 deletions

View File

@ -2484,9 +2484,9 @@ tvb_extract_ucs_4_string(wmem_allocator_t *scope, tvbuff_t *tvb, const gint offs
for(i = 0; i + 3 < length; i += 4) {
if (encoding == ENC_BIG_ENDIAN)
uchar = pntoh16(ptr + i);
uchar = pntoh32(ptr + i);
else
uchar = pletoh16(ptr + i);
uchar = pletoh32(ptr + i);
wmem_strbuf_append_unichar(strbuf, uchar);
}