diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2001-09-16 21:08:56 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2001-09-16 21:08:56 +0000 |
commit | 84b21905985528a768988e84516e888639e14043 (patch) | |
tree | 216ea0ccb3c96a1fabbf7b5ca413c8c020697bb4 /usr.bin/m4 | |
parent | 2d0c43a7fdea6533d6a68be5f3119f7b9bcc8280 (diff) |
Fix \\ in recognition in patsubst: must advance beyond it as well.
Diffstat (limited to 'usr.bin/m4')
-rw-r--r-- | usr.bin/m4/gnum4.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/m4/gnum4.c b/usr.bin/m4/gnum4.c index f400981d26d..823892d986e 100644 --- a/usr.bin/m4/gnum4.c +++ b/usr.bin/m4/gnum4.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gnum4.c,v 1.9 2001/07/28 05:36:18 pvalchev Exp $ */ +/* $OpenBSD: gnum4.c,v 1.10 2001/09/16 21:08:55 espie Exp $ */ /* * Copyright (c) 1999 Marc Espie @@ -308,6 +308,7 @@ add_replace(string, re, replace, pm) if (*p == '\\') { if (p[1] == '\\') { addchar(p[1]); + p++; continue; } if (p[1] == '&') { |