From d21735de2d7380d96cd42458c6d9775143abe6ea Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Wed, 2 Jan 2002 17:56:38 +0000 Subject: * editors/sed.c (parse_edit_command): Require a newline after the backslash after an edit command. * testsuite/sed/sed-requires-newline-after-edit-command: New. --- editors/sed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors') diff --git a/editors/sed.c b/editors/sed.c index fe1c0dbae..1c026d30b 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -322,7 +322,7 @@ static int parse_edit_cmd(struct sed_cmd *sed_cmd, const char *editstr) * */ - if (editstr[1] != '\\' && (editstr[2] != '\n' || editstr[2] != '\r')) + if (editstr[1] != '\\' || (editstr[2] != '\n' && editstr[2] != '\r')) error_msg_and_die("bad format in edit expression"); /* store the edit line text */ -- cgit v1.2.3