Fix onetrueawk#83 (#84)

This commit is contained in:
awkfan77 2020-06-25 19:33:52 +01:00 committed by GitHub
parent cef5180110
commit e5a89e63fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

6
b.c
View File

@ -1105,6 +1105,12 @@ rescan:
if (!adjbuf((char **) &buf, &bufsz, bp-buf+1, 100, (char **) &bp, "relex2"))
FATAL("out of space for reg expr %.10s...", lastre);
if (cc->cc_func(i)) {
/* escape backslash */
if (i == '\\') {
*bp++ = '\\';
n++;
}
*bp++ = i;
n++;
}