From 5d53bcb5e10292f1f187a0fda559f31d3c08bdfb Mon Sep 17 00:00:00 2001 From: Vladislav Zavjalov Date: Thu, 16 Jun 2022 23:22:55 +0100 Subject: [PATCH] fix build with gcc12.1.1: -Werror=address --- elinks/src/session/download.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elinks/src/session/download.c b/elinks/src/session/download.c index eb3db7c9..6629e65a 100644 --- a/elinks/src/session/download.c +++ b/elinks/src/session/download.c @@ -1625,7 +1625,7 @@ do_type_query(struct type_query *type_query, char *ct, struct mime_handler *hand return; } - if (handler && handler->program) { + if (handler) { safe_strncpy(field, handler->program, MAX_STR_LEN); } -- 2.33.0