forked from osmocom/wireshark
iseries: stop scanning a unicode string when the null terminator is hit.
Bug: 15614 Change-Id: I1df4992dcd10e7d9a66fc88a0269b70fc065b079 Reviewed-on: https://code.wireshark.org/review/32514 Reviewed-by: Peter Wu <peter@lekensteyn.nl> Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Dario Lombardo <lomato@gmail.com>
This commit is contained in:
parent
1ce2918fc8
commit
c599e49028
|
@ -984,7 +984,7 @@ iseries_UNICODE_to_ASCII (guint8 * buf, guint bytes)
|
|||
*bufptr = buf[i];
|
||||
bufptr++;
|
||||
}
|
||||
if (buf[i] == 0x0A)
|
||||
if (buf[i] == 0x0A || buf[i] == 0x0)
|
||||
return i;
|
||||
}
|
||||
return i;
|
||||
|
|
Loading…
Reference in New Issue