From 692710cab7a1bbe13ac9dd8ae3f42c02c64595b6 Mon Sep 17 00:00:00 2001 From: Marc Stern Date: Wed, 7 Aug 2024 13:45:09 +0200 Subject: [PATCH] Replaced 0 by '\0' for char --- apache2/re_operators.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache2/re_operators.c b/apache2/re_operators.c index 30176c51..5beccc8d 100644 --- a/apache2/re_operators.c +++ b/apache2/re_operators.c @@ -1565,7 +1565,7 @@ static const char *gsb_replace_tpath(apr_pool_t *pool, const char *domain, int l data = apr_palloc(pool, len + 1); if (!data) return NULL; - url[len] = 0; + url[len] = '\0'; while(( pos = strstr(url , "/./" )) != NULL) { match = 1;