From 57a1514ac74527651ad42dca3041f3f53509317e Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 30 Apr 2021 03:18:25 -0700 Subject: Cast away the return value of g_strlcpy() and g_strlcat(). Most of the time, the return value tells us nothing useful, as we've already decided that we're perfectly willing to live with string truncation. Hopefully this keeps Coverity from whining that those routines could return an error code (NARRATOR: They don't) and thus that we're ignoring the possibility of failure (as indicated, we've already decided that we can live with string truncation, so truncation is *NOT* a failure). --- epan/dissectors/packet-sua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-sua.c') diff --git a/epan/dissectors/packet-sua.c b/epan/dissectors/packet-sua.c index 89a74f6d7f..1196d7fed6 100644 --- a/epan/dissectors/packet-sua.c +++ b/epan/dissectors/packet-sua.c @@ -1411,12 +1411,12 @@ dissect_global_title_parameter(tvbuff_t *parameter_tvb, proto_tree *parameter_tr even_signal = tvb_get_guint8(parameter_tvb, offset) & GT_EVEN_SIGNAL_MASK; even_signal >>= GT_EVEN_SIGNAL_SHIFT; - g_strlcat(gt_digits, val_to_str_const(odd_signal, sccp_address_signal_values, + (void) g_strlcat(gt_digits, val_to_str_const(odd_signal, sccp_address_signal_values, "Unknown"), GT_MAX_SIGNALS+1); /* If the last signal is NOT filler */ if (offset != (GLOBAL_TITLE_OFFSET + global_title_length - 1) || even_length == TRUE) - g_strlcat(gt_digits, val_to_str_const(even_signal, sccp_address_signal_values, + (void) g_strlcat(gt_digits, val_to_str_const(even_signal, sccp_address_signal_values, "Unknown"), GT_MAX_SIGNALS+1); offset += GT_SIGNAL_LENGTH; -- cgit v1.2.3