diff --git a/ChangeLog b/ChangeLog index e41842c..af2e5e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-10-07 Arnold D. Robbins + + * b.c (fnematch): Change type of pbuf from unsigned char to char. + * proto.h (fnematch): Ditto. + 2019-10-06 Arnold D. Robbins * lib.c (readrec): Allow RS a regular expression. Imported diff --git a/b.c b/b.c index 31df715..ea70fd5 100644 --- a/b.c +++ b/b.c @@ -632,9 +632,9 @@ int nematch(fa *f, const char *p0) /* non-empty match, for sub */ * 1 Match found. */ -int fnematch(fa *pfa, FILE *f, uschar **pbuf, int *pbufsize, int quantum) +int fnematch(fa *pfa, FILE *f, char **pbuf, int *pbufsize, int quantum) { - uschar *buf = *pbuf; + char *buf = *pbuf; int bufsize = *pbufsize; int c, i, j, k, ns, s; diff --git a/proto.h b/proto.h index f498f31..bc5cf6e 100644 --- a/proto.h +++ b/proto.h @@ -54,7 +54,7 @@ extern int member(int, const char *); extern int match(fa *, const char *); extern int pmatch(fa *, const char *); extern int nematch(fa *, const char *); -extern int fnematch(fa *, FILE *, uschar **, int *, int); +extern int fnematch(fa *, FILE *, char **, int *, int); extern Node *reparse(const char *); extern Node *regexp(void); extern Node *primary(void);