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/address_types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/address_types.c') diff --git a/epan/address_types.c b/epan/address_types.c index 260dc96b51..c58dd9209d 100644 --- a/epan/address_types.c +++ b/epan/address_types.c @@ -390,7 +390,7 @@ static int fcwwn_name_res_len(void) ******************************************************************************/ static int stringz_addr_to_str(const address* addr, gchar *buf, int buf_len) { - g_strlcpy(buf, (const gchar *)addr->data, buf_len); + (void) g_strlcpy(buf, (const gchar *)addr->data, buf_len); return (int)(strlen(buf)+1); } -- cgit v1.2.3