From abcb0e7a59995b2a34de1f0f9aafd33adf8c872e Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Wed, 9 Dec 2020 02:46:43 +0000 Subject: [PATCH] security/openssh-portable@gssapi: fix build on GCC architectures gss-genr.c: In function 'ssh_gssapi_kex_mechs': gss-genr.c:175:9: error: 'strncpy' specified bound depends on the length of the source argument [-Werror=stringop-overflow=] 175 | cp = strncpy(s, kex, strlen(kex)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors --- security/openssh-portable/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/openssh-portable/Makefile b/security/openssh-portable/Makefile index bb479fd0d024..eb1a332b0c21 100644 --- a/security/openssh-portable/Makefile +++ b/security/openssh-portable/Makefile @@ -188,7 +188,7 @@ RC_SCRIPT_NAME= openssh VERSION_ADDENDUM_DEFAULT?= ${OPSYS}-${PKGNAME} CFLAGS+= ${CFLAGS_${CHOSEN_COMPILER_TYPE}} -CFLAGS_gcc= -Wno-stringop-truncation +CFLAGS_gcc= -Wno-stringop-truncation -Wno-stringop-overflow post-patch: @${REINPLACE_CMD} \