diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-03-09 11:57:32 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-03-09 11:57:32 +0000 |
commit | b4856acd04a52a4ba9817d7a4431fc513f49a0cf (patch) | |
tree | 04cac1fd12cedbfb2819bdf182e9f8996f6407f0 | |
parent | 6027c97c6b47ee921c4eb8aa986d9a0a53c9ceda (diff) | |
download | FreeBSD-src-b4856acd04a52a4ba9817d7a4431fc513f49a0cf.zip FreeBSD-src-b4856acd04a52a4ba9817d7a4431fc513f49a0cf.tar.gz |
Fix dubious C code construct.
-rw-r--r-- | usr.bin/sed/compile.c | 2 |
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); |