forked from osmocom/wireshark
Add some documentation to hopefully help dissector writers avoid the problem
in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9323 : The string added to proto_tree_add_string*() must be NULL terminated. svn path=/trunk/; revision=52984
This commit is contained in:
parent
904971302b
commit
875dee28c4
|
@ -1506,7 +1506,8 @@ For proto_tree_add_ether(), the 'value_ptr' argument is a pointer to a
|
|||
48-bit MAC address.
|
||||
|
||||
For proto_tree_add_string(), the 'value_ptr' argument is a pointer to a
|
||||
text string.
|
||||
text string; this string must be NULL terminated even if the string in the
|
||||
TVB is not (as may be the case with FT_STRINGs).
|
||||
|
||||
For proto_tree_add_boolean(), the 'value' argument is a 32-bit integer.
|
||||
It is masked and shifted as defined by the field info after which zero
|
||||
|
|
Loading…
Reference in New Issue