diff options
| -rw-r--r-- | usr.bin/sed/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c index 2ec8aacc5879..1bcda6df184b 100644 --- a/usr.bin/sed/process.c +++ b/usr.bin/sed/process.c @@ -180,7 +180,7 @@ redirect: if (pd) break; if ((p = memchr(ps, '\n', psl)) != NULL) { - oldc = *p; + oldc = *++p; *p = '\0'; } OUT(ps) |
