aboutsummaryrefslogtreecommitdiffstats
path: root/epan/print.h
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2014-05-18 14:21:31 -0400
committerEvan Huus <eapache@gmail.com>2014-05-19 01:46:55 +0000
commite5353bf1198d6abf748de78084ff64f597f13663 (patch)
tree3e29b06909e6e7b6119fa9aaac4cf8fc28a8e968 /epan/print.h
parentf75f47b7ae98f21f3002d7045e0a6594b45f3703 (diff)
Use g_ alloced memory (instead of emem) when printing fields. emem shouldn't be used for GUI functions anyway.
emem was exposed because of its memory limits trying to output PDML for a very large byte field in a capture file. When converting from proto_construct_match_selected_string to fvalue_to_string_repr remember proto_construct_match_selected_string includes fieldname + value, not just value bug:10081 Change-Id: I4fc6ea7fd1f63cff410207c8b30562771af40ada Reviewed-on: https://code.wireshark.org/review/1578 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/print.h')
-rw-r--r--epan/print.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/print.h b/epan/print.h
index 76fe08f56f..be739f248b 100644
--- a/epan/print.h
+++ b/epan/print.h
@@ -157,7 +157,7 @@ WS_DLL_PUBLIC void write_fields_preamble(output_fields_t* fields, FILE *fh);
WS_DLL_PUBLIC void proto_tree_write_fields(output_fields_t* fields, epan_dissect_t *edt, column_info *cinfo, FILE *fh);
WS_DLL_PUBLIC void write_fields_finale(output_fields_t* fields, FILE *fh);
-WS_DLL_PUBLIC const gchar* get_node_field_value(field_info* fi, epan_dissect_t* edt);
+WS_DLL_PUBLIC gchar* get_node_field_value(field_info* fi, epan_dissect_t* edt);
#ifdef __cplusplus
}