summaryrefslogtreecommitdiff
path: root/wiretap/vwr.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2014-03-28 11:00:28 -0400
committerEvan Huus <eapache@gmail.com>2014-03-29 20:01:17 +0000
commit521bab1e1c5fadc07e32d73c393cbf1b0f0f942d (patch)
tree01f628dea2ca167cbe569a2ec05998d11ae2668e /wiretap/vwr.c
parent7df883954effe0b86a6d49ed33b888665afc0054 (diff)
downloadwireshark-521bab1e1c5fadc07e32d73c393cbf1b0f0f942d.tar.gz
Use sized strbufs when extracting tvb strings
We rarely know exactly how long a string will be, but we frequently have a good lower bound (that's better than the default strbuf size of 16). Starting at that size probably reduces the amount of allocation/copying needed. Also make use of the new _finalize() method to save memory and avoid constness problems. Change-Id: I3f043bd12c1ccfce5990168fb6531ecd287bec5b Reviewed-on: https://code.wireshark.org/review/856 Reviewed-by: Guy Harris <guy@alum.mit.edu> Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'wiretap/vwr.c')
0 files changed, 0 insertions, 0 deletions