diff options
author | Rob Landley <rob@landley.net> | 2019-01-11 22:01:44 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-01-11 22:01:44 -0600 |
commit | 1f0cfeef3ca3421ca6dc4b1fdbd6aa3bc3087302 (patch) | |
tree | 9a4b9a245a988e83d07c7dcf6e22b6dd9d164cae /toys/posix | |
parent | 323779dde2a48b99f90f66670dec72f0bd31213a (diff) | |
download | toybox-1f0cfeef3ca3421ca6dc4b1fdbd6aa3bc3087302.tar.gz |
Fix b ending with }
For a definition of "fix" that's even _more_ of a deviation from posix, but
matches what debian does...
Diffstat (limited to 'toys/posix')
-rw-r--r-- | toys/posix/sed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/sed.c b/toys/posix/sed.c index 3073a69c..bab6fb00 100644 --- a/toys/posix/sed.c +++ b/toys/posix/sed.c @@ -944,7 +944,7 @@ resume_a: command->hit = 0; // btT: end with space or semicolon, aicrw continue to newline. - if (!(end = strcspn(line, strchr(":btT", c) ? "; \t\r\n\v\f" : "\n"))) { + if (!(end = strcspn(line, strchr(":btT", c) ? "}; \t\r\n\v\f" : "\n"))) { // Argument's optional for btT if (strchr("btT", c)) continue; else if (!command->arg1) break; |