From: Ralph Corderoy Date: Wed, 17 May 2017 16:56:00 +0000 (+0100) Subject: uip/mhshowsbr.c: Increase buffer size for showing-content command. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/54fb590089a2bf43d7987861ba57acb17cebc150?ds=sidebyside;hp=fbb92a858ba6b30b8110c0f3aa05e9376e4fe418 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. --- 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)