From 0615ba6317466b281769db4848704f250ff494b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Sun, 19 Jun 2022 00:31:30 +0100 Subject: ftypes: Make accessor functions type safe --- epan/dfilter/dfunctions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dfilter/dfunctions.c') diff --git a/epan/dfilter/dfunctions.c b/epan/dfilter/dfunctions.c index 0c5234a201..cdba3e2c3a 100644 --- a/epan/dfilter/dfunctions.c +++ b/epan/dfilter/dfunctions.c @@ -42,7 +42,7 @@ string_walk(GSList *args, guint32 arg_count, GSList **retval, gchar(*conv_func)( arg_fvalue = (fvalue_t *)arg1->data; /* XXX - it would be nice to handle FT_TVBUFF, too */ if (IS_FT_STRING(fvalue_type_ftenum(arg_fvalue))) { - s = (char *)wmem_strdup(NULL, (gchar *)fvalue_get(arg_fvalue)); + s = wmem_strdup(NULL, fvalue_get_string(arg_fvalue)); for (c = s; *c; c++) { *c = conv_func(*c); } -- cgit v1.2.3