summaryrefslogtreecommitdiffstats
path: root/usr.bin/awk/b.c.diff
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/awk/b.c.diff')
-rw-r--r--usr.bin/awk/b.c.diff6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/awk/b.c.diff b/usr.bin/awk/b.c.diff
index 2f6b222..525fcbc 100644
--- a/usr.bin/awk/b.c.diff
+++ b/usr.bin/awk/b.c.diff
@@ -32,7 +32,7 @@ diff -u -p -r1.1.1.8 b.c
@@ -303,15 +315,18 @@ char *cclenter(const char *argp) /* add
c2 = *p++;
if (c2 == '\\')
- c2 = quoted((char **) &p);
+ c2 = quoted((char **) &p);
- if (c > c2) { /* empty; ignore */
+ if (collate_range_cmp(c, c2) > 0) {
bp--;
@@ -44,8 +44,8 @@ diff -u -p -r1.1.1.8 b.c
+ if ((collate_range_cmp(c, j) > 0) ||
+ collate_range_cmp(j, c2) > 0)
+ continue;
- if (!adjbuf((char **) &buf, &bufsz, bp-buf+2, 100, (char **) &bp, 0))
- FATAL("out of space for character class [%.10s...] 2", p);
+ if (!adjbuf((char **) &buf, &bufsz, bp-buf+2, 100, (char **) &bp, "cclenter1"))
+ FATAL("out of space for character class [%.10s...] 2", p);
- *bp++ = ++c;
+ *bp++ = j;
i++;
OpenPOWER on IntegriCloud