X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/49976f25a761e67a05cc493cc7ab88863a587e30..cfb444d37fc236a9fdac369cbcf2a5bfc37a33f5:/uip/show.c diff --git a/uip/show.c b/uip/show.c index 7fb4cfae..ac012927 100644 --- a/uip/show.c +++ b/uip/show.c @@ -1,5 +1,4 @@ -/* - * show.c -- show/list messages +/* show.c -- show/list messages * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -9,6 +8,7 @@ #include #include #include +#include "../sbr/m_maildir.h" #define SHOW_SWITCHES \ X("checkmime", 0, CHECKMIMESW) \ @@ -298,7 +298,7 @@ go_to_it: ; } if (folder && !draftsw && !file) - m_putenv ("mhfolder", folder); + setenv("mhfolder", folder, 1); if (strcmp (r1bindex (proc, '/'), "cat") == 0) { @@ -368,7 +368,7 @@ is_nontext (char *msgnam) { int result, state; char *bp, *dp, *cp; - char buf[BUFSIZ], name[NAMESZ]; + char buf[NMH_BUFSIZ], name[NAMESZ]; FILE *fp; m_getfld_state_t gstate = 0; @@ -414,7 +414,7 @@ invalid: continue; case '(': i++; - /* FALLTHRU */ + continue; default: continue; case ')':