From 3dc2fe25dc3adc6394ea4370fa0f8ebabca4c077 Mon Sep 17 00:00:00 2001 From: Stefan Farfeleder Date: Wed, 9 Mar 2005 11:57:32 +0000 Subject: [PATCH] Fix dubious C code construct. --- usr.bin/sed/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c index 0df329f89c9..ce8a46e2009 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);