Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-users: Re: [Wireshark-users] tshark doesn't print bytes following a NULL character? (v1

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 30 Aug 2010 09:55:34 -0700
On Aug 30, 2010, at 6:48 AM, Ryan Lynch wrote:

> If it's a bug, I assume it's related to some assumptions about
> null-terminated strings in C.

It's related to the fact that libwireshark - as used both by TShark and Wireshark - currently represents all strings in packets as C strings.  They should probably be represented as a counted UTF-8 string or as a counted byte sequence plus a character encoding or something such as that.