ul outputs wrong character in overstruck sequence; bug report 4.3BSD/ucb/49
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 10 Dec 1986 06:28:51 +0000 (22:28 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 10 Dec 1986 06:28:51 +0000 (22:28 -0800)
SCCS-vsn: usr.bin/ul/ul.c 5.2

usr/src/usr.bin/ul/ul.c

index 3ecabfd..16e71ed 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)ul.c       5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)ul.c       5.2 (Berkeley) %G%";
 #endif not lint
 
 #include <stdio.h>
 #endif not lint
 
 #include <stdio.h>
@@ -211,7 +211,7 @@ FILE *f;
                } else if (obuf[col].c_char == c)
                        obuf[col].c_mode |= BOLD|mode;
                else {
                } else if (obuf[col].c_char == c)
                        obuf[col].c_mode |= BOLD|mode;
                else {
-                       obuf[col].c_mode = c;
+                       obuf[col].c_char = c;
                        obuf[col].c_mode = mode;
                }
                col++;
                        obuf[col].c_mode = mode;
                }
                col++;