From c7c88ed5e087d044c24d7b1899aab4031c83558b Mon Sep 17 00:00:00 2001 From: Quentin Smith Date: Sun, 9 Aug 2020 05:37:48 -0400 Subject: [PATCH] Fix buffer overflow in zstat --- clients/zstat/zstat.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clients/zstat/zstat.c b/clients/zstat/zstat.c index 68568938..9f54071f 100644 --- a/clients/zstat/zstat.c +++ b/clients/zstat/zstat.c @@ -138,7 +138,7 @@ hm_stat(char *host, struct in_addr inaddr; Code_t code; - char *line[20],*mp; + char *line[HM_SIZE],*mp; unsigned int i,nf; struct hostent *hp; time_t runtime; @@ -163,7 +163,7 @@ hm_stat(char *host, } mp = notice.z_message; - for (nf=0;mp