Ethereal-dev: RE: [ethereal-dev] Counted strings

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Jeff Foster <jfoste@xxxxxxxxxxxx>
Date: Thu, 27 Apr 2000 07:28:59 -0500
>Currently, FT_STRING values are null-terminated.
>
>However, that's a bit of a pain if the string is counted and not
>necessarily null-terminated in the packet - you have to copy the string
>to a buffer and null-terminate the buffer.
.
.
.
>It might be convenient to have calls that add string items to the tree
>take the length of the actual string data, as well as the length of the
>item as a whole, and to make "value.string" be a structure containing a
>string length and a pointer to the string data.

This is a good thing.  Please do it.

Jeff Foster
jfoste@xxxxxxxxxxxx