sctp: usrsctp: increase DIAG_MSG_LEN to accomodate longer file path
authorTim-Philipp Müller <tim@centricular.com>
Tue, 25 Aug 2020 22:46:16 +0000 (23:46 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 25 Aug 2020 23:00:24 +0000 (00:00 +0100)
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1540>

ext/sctp/usrsctp/usrsctplib/netinet/sctp_constants.h

index 5e2c5d1..66b3fa8 100644 (file)
@@ -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