aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/sed
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-06 00:55:39 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-06 00:55:39 +0000
commit678fec509dde47fe561de515df7e600274c38380 (patch)
tree63883ad3aa75d8e957ab2e359e6f5236c78dd505 /usr.bin/sed
parentc383e5c8ac5dd20b1c688cf3ef4d43a8be5483c9 (diff)
Notes
Diffstat (limited to 'usr.bin/sed')
-rw-r--r--usr.bin/sed/compile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c
index 68cbbc54f22bc..2d7f8d2f6e738 100644
--- a/usr.bin/sed/compile.c
+++ b/usr.bin/sed/compile.c
@@ -730,7 +730,7 @@ compile_tr(char *p, struct s_tr **py)
}
/*
- * Compile the text following an a or i command.
+ * Compile the text following an a, c, or i command.
*/
static char *
compile_text(void)
@@ -746,7 +746,6 @@ compile_text(void)
while (cu_fgets(lbuf, sizeof(lbuf), NULL)) {
op = s = text + size;
p = lbuf;
- EATSPACE();
for (esc_nl = 0; *p != '\0'; p++) {
if (*p == '\\' && p[1] != '\0' && *++p == '\n')
esc_nl = 1;