summaryrefslogtreecommitdiff
path: root/net-analyzer/iptraf-ng/files/iptraf-ng-1.2.2-buffer_overflow.patch
blob: 9c2262db870a63a0211f1c43ed65d6196a040a08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Fix this issue:

src/tcptable.c:484:140: warning: ‘%s’ directive output may be truncated writing up to 63 bytes into a region of size between 0 and 225 [-Wformat-truncation=]

--- a/src/tcptable.c
+++ b/src/tcptable.c
@@ -22,7 +22,7 @@
 #include "hostmon.h"
 #include "sockaddr.h"
 
-#define MSGSTRING_MAX	320
+#define MSGSTRING_MAX	640
 
 unsigned int bmaxy = 0;
 unsigned int imaxy = 0;