http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=35493
User: morriss
Date: 2011/01/11 06:25 PM
Log:
Introduce, and start using, tvb_get_const_stringz(). This function returns a
pointer to a NULL-terminated string in the TVB. It is no safer than dissectors
which call tvb_get_strsize() and then tvb_get_ptr() but it makes it clear that
this usage of tvb_get_ptr() is safe.
This function is slightly more efficient than tvb_get_ephemeral_stringz()--but
only as long as we're not using composite TVBs.
Directory: /trunk/epan/dissectors/
Changes Path Action
+27 -33 packet-catapult-dct2000.c Modified
Directory: /trunk/doc/
Changes Path Action
+11 -5 README.developer Modified
Directory: /trunk/epan/
Changes Path Action
+1 -0 libwireshark.def Modified
+34 -9 tvbuff.c Modified
+8 -2 tvbuff.h Modified