diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2015-04-04 19:54:51 +0300 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-04-07 09:51:46 +0200 |
commit | 6c5d0caf3b7c099232c1ac428407fbf31287d77a (patch) | |
tree | 993ee88b692ad406f92b6c4503229d59af612811 | |
parent | 48097ae5585c856ce676baa006dd018f86eda565 (diff) |
netsniff-ng: Fix process name when sniffing nlmon device
While sniffing nlmon device the process name can be
printed with non-letter characters because readlink does not
put line ending '\0'
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | proto_nlmsg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto_nlmsg.c b/proto_nlmsg.c index 3471094..157ea58 100644 --- a/proto_nlmsg.c +++ b/proto_nlmsg.c @@ -18,7 +18,7 @@ static void nlmsg(struct pkt_buff *pkt) struct nlmsghdr *hdr = (struct nlmsghdr *) pkt_pull(pkt, sizeof(*hdr)); char type[32]; char flags[128]; - char procname[1024]; + char procname[1024] = {}; if (hdr == NULL) return; |