From 1d9a3e3de04d38b74a35a7f70785452d99afaeca Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Tue, 14 Jan 2014 13:19:58 +0100 Subject: [PATCH] PCRE regex: Fixed a harmless compilation warning. --- ucw/regex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ucw/regex.c b/ucw/regex.c index d149d60f..82ccd457 100644 --- a/ucw/regex.c +++ b/ucw/regex.c @@ -185,7 +185,7 @@ rx_subst(regex *r, const char *by, const char *src, char *dest, uns destlen) uns j = *by++ - '0'; if (j < r->real_matches && r->matches[2*j] >= 0) { - char *s = src + r->matches[2*j]; + const char *s = src + r->matches[2*j]; uns i = r->matches[2*j+1] - r->matches[2*j]; if (dest + i >= end) return -1; -- 2.39.2