summaryrefslogtreecommitdiffstats
path: root/usr.bin/sed/compile.c
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-03-09 11:57:32 +0000
committerstefanf <stefanf@FreeBSD.org>2005-03-09 11:57:32 +0000
commitb4856acd04a52a4ba9817d7a4431fc513f49a0cf (patch)
tree04cac1fd12cedbfb2819bdf182e9f8996f6407f0 /usr.bin/sed/compile.c
parent6027c97c6b47ee921c4eb8aa986d9a0a53c9ceda (diff)
downloadFreeBSD-src-b4856acd04a52a4ba9817d7a4431fc513f49a0cf.zip
FreeBSD-src-b4856acd04a52a4ba9817d7a4431fc513f49a0cf.tar.gz
Fix dubious C code construct.
Diffstat (limited to 'usr.bin/sed/compile.c')
-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 0df329f..ce8a46e 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);
OpenPOWER on IntegriCloud