Change all chars being passed to the ctype macros (isalph(), etc.) to
[mmh] / uip / mhlsbr.c
index 04da52b..acf21de 100644 (file)
@@ -230,7 +230,7 @@ static int wid;
 
 static char *ovtxt;
 
-static char *onelp;
+static unsigned char *onelp;
 
 static char *parptr;
 
@@ -1185,7 +1185,7 @@ static void
 putcomp (struct mcomp *c1, struct mcomp *c2, int flag)
 {
     int count, cchdr;
-    char *cp;
+    unsigned char *cp;
 
     cchdr = 0;
     lm = 0;
@@ -1298,6 +1298,8 @@ putcomp (struct mcomp *c1, struct mcomp *c2, int flag)
        if (term == '\n')
            putstr ("\n");
     }
+    if (flag == BODYCOMP && term == '\n')
+       c1->c_flags &= ~HDROUTPUT;              /* Buffer ended on a newline */
 }