diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-07-16 06:06:06 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-07-16 06:06:06 +0000 |
commit | f338bd3ffc38c67fa51d7278615a80d9ed4e79cb (patch) | |
tree | 05cbb90efed55f3d3b9996809d72d4be45b7f62c /packet-yhoo.c | |
parent | 55073f857311b2f3db40d052e71be2ec74464d78 (diff) | |
download | wireshark-f338bd3ffc38c67fa51d7278615a80d9ed4e79cb.tar.gz |
Get the length of a null-terminated string with "tvb_strnlen()", not by
getting a pointer to the first byte of the string with "tvb_get_ptr()"
and then assuming you can safely do a "strlen()" with that pointer
(it's not guaranteed that you can, as the terminating null byte might
not be in the tvbuff).
Add the resulting string with "proto_tree_add_item()".
svn path=/trunk/; revision=3728
Diffstat (limited to 'packet-yhoo.c')
0 files changed, 0 insertions, 0 deletions