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:
Dario Lombardo 2019-03-24 16:01:22 +01:00
parent 1ce2918fc8
commit c599e49028
1 changed files with 1 additions and 1 deletions

View File

@ -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;