From 104fbaaceaf4001d8c9c998981e7bcc22fdb027d Mon Sep 17 00:00:00 2001 From: Lipi Lee Date: Tue, 8 Sep 2015 05:37:00 -0500 Subject: increase the size of progname to avoid buffer overflow --- toys/pending/netstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') diff --git a/toys/pending/netstat.c b/toys/pending/netstat.c index fbb9eb12..63be39cc 100644 --- a/toys/pending/netstat.c +++ b/toys/pending/netstat.c @@ -58,7 +58,7 @@ enum { #define SOCK_NOT_CONNECTED 1 //For PID/Progrma Name #define PROGRAM_NAME "PID/Program Name" -#define PROGNAME_LEN 21 +#define PROGNAME_LEN 50 typedef struct _pidlist { struct _pidlist *next; -- cgit v1.2.3