From b48702e4bc17502952a7f14b616f40c8489a5a66 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 25 Aug 2020 23:46:16 +0100 Subject: [PATCH] sctp: usrsctp: increase DIAG_MSG_LEN to accomodate longer file path MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes "‘%s’ directive output truncated writing XX bytes into a region of size NN [-Wformat-truncation=]" compiler warnings. https://github.com/sctplab/usrsctp/pull/521 Fixes #1389 Part-of: --- ext/sctp/usrsctp/usrsctplib/netinet/sctp_constants.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/sctp/usrsctp/usrsctplib/netinet/sctp_constants.h b/ext/sctp/usrsctp/usrsctplib/netinet/sctp_constants.h index 5e2c5d1..66b3fa8 100644 --- a/ext/sctp/usrsctp/usrsctplib/netinet/sctp_constants.h +++ b/ext/sctp/usrsctp/usrsctplib/netinet/sctp_constants.h @@ -753,7 +753,7 @@ extern void getwintimeofday(struct timeval *tv); #define SCTP_DEFAULT_SPLIT_POINT_MIN 2904 /* Maximum length of diagnostic information in error causes */ -#define SCTP_DIAG_INFO_LEN 128 +#define SCTP_DIAG_INFO_LEN 256 /* ABORT CODES and other tell-tale location * codes are generated by adding the below -- 2.7.4