forked from osmocom/wireshark
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:
parent
0f90397d29
commit
8ab1c804d7
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue