X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/91fff561d7a49b85c148c2de4cd82610b32a9cec..441ef14d0e5bc7f203dc93913bd503afdafaef76:/uip/mhlsbr.c diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index e948da94..35e918bb 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -545,7 +545,7 @@ static void mhl_format (char *file, int length, int width) { int i; - char *bp, *cp, **ip; + char *bp, **ip; char *ap, name[NAMESZ]; struct mcomp *c1; struct stat st; @@ -591,8 +591,7 @@ mhl_format (char *file, int length, int width) if (*bp == ';') continue; - if ((cp = strchr(bp, '\n'))) - *cp = 0; + TrimSuffixC(bp, '\n'); if (*bp == ':') { (void) add_queue (&fmthd, &fmttl, NULL, bp + 1, CLEARTEXT); @@ -990,7 +989,7 @@ mhlfile (FILE *fp, char *mname, int ofilen, int ofilec) nmh_clear_screen (); } else - printf ("\n"); + putchar('\n'); break; default: