summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2005-03-09 11:57:32 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2005-03-09 11:57:32 +0000
commit3dc2fe25dc3adc6394ea4370fa0f8ebabca4c077 (patch)
tree04cac1fd12cedbfb2819bdf182e9f8996f6407f0
parentb26244446b1335ef222b38f2c020bc50a5632525 (diff)
Notes
-rw-r--r--usr.bin/sed/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c
index 0df329f89c93..ce8a46e20098 100644
--- a/usr.bin/sed/compile.c
+++ b/usr.bin/sed/compile.c
@@ -640,7 +640,7 @@ compile_tr(char *p, struct s_tr **py)
if (p == NULL)
errx(1, "%lu: %s: unterminated transform source string",
linenum, fname);
- p = compile_delimited(--p, new);
+ p = compile_delimited(p - 1, new);
if (p == NULL)
errx(1, "%lu: %s: unterminated transform target string",
linenum, fname);