From 54fb590089a2bf43d7987861ba57acb17cebc150 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Wed, 17 May 2017 17:56:00 +0100 Subject: [PATCH] uip/mhshowsbr.c: Increase buffer size for showing-content command. Experimenting with small BUFSIZ to try and trigger programs caused one test to fail because the code detected BUFSIZ was too small a string to hold the command to execute. Use NMH_BUFSIZ instead. --- uip/mhshowsbr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index 20de87cc..11ec02b3 100644 --- a/uip/mhshowsbr.c +++ b/uip/mhshowsbr.c @@ -344,7 +344,7 @@ show_content_aux (CT ct, int alternate, char *cp, char *cracked, struct format * { int fd; int xstdin = 0, xlist = 0; - char *file = NULL, buffer[BUFSIZ]; + char *file = NULL, buffer[NMH_BUFSIZ]; if (!ct->c_ceopenfnx) { if (!alternate) -- 2.56.0