aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-11-04 20:49:59 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-11-04 20:49:59 +0000
commitb780b03cbefa2bcbc9a39005e8544aeb304554a1 (patch)
tree2ab176f0184c1da5a2d8d7121936d8572cc4775a
parentaba6e414954ad6c965b771d5c2ae45791baed06b (diff)
downloadsrc-b780b03cbefa2bcbc9a39005e8544aeb304554a1.tar.gz
src-b780b03cbefa2bcbc9a39005e8544aeb304554a1.zip
Notes
-rw-r--r--usr.bin/sed/compile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c
index bafb339a4b5d..f05d45fc6b40 100644
--- a/usr.bin/sed/compile.c
+++ b/usr.bin/sed/compile.c
@@ -746,6 +746,9 @@ compile_text(void)
while (cu_fgets(lbuf, sizeof(lbuf), NULL) != NULL) {
op = s = text + size;
p = lbuf;
+#ifdef LEGACY_BSDSED_COMPAT
+ EATSPACE();
+#endif
for (esc_nl = 0; *p != '\0'; p++) {
if (*p == '\\' && p[1] != '\0' && *++p == '\n')
esc_nl = 1;