From e5353bf1198d6abf748de78084ff64f597f13663 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sun, 18 May 2014 14:21:31 -0400 Subject: 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 --- epan/print.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/print.h') 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 } -- cgit v1.2.3