diff options
-rw-r--r-- | usr.bin/sed/process.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c index 1ba80f5..9816b1b 100644 --- a/usr.bin/sed/process.c +++ b/usr.bin/sed/process.c @@ -490,11 +490,11 @@ lputs(s) if (isprint((unsigned char)*s) && *s != '\\') { (void)putchar(*s); count++; - } else { - escapes = "\\\a\b\f\n\r\t\v"; + } else if (*s != '\n') { + escapes = "\\\a\b\f\r\t\v"; (void)putchar('\\'); if ((p = strchr(escapes, *s))) { - (void)putchar("\\abfnrtv"[p - escapes]); + (void)putchar("\\abfrtv"[p - escapes]); count += 2; } else { (void)printf("%03o", *(u_char *)s); |