OSDN Git Service

increase the size of progname to avoid buffer overflow
authorLipi Lee <lipisoft@gmail.com>
Tue, 8 Sep 2015 10:37:00 +0000 (05:37 -0500)
committerRob Landley <rob@landley.net>
Tue, 8 Sep 2015 10:37:00 +0000 (05:37 -0500)
toys/pending/netstat.c

index fbb9eb1..63be39c 100644 (file)
@@ -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;