fourth patch.
From 7d6fdd29ae00b7817e01a5ba9770043d5e371ea8 Mon Sep 17 00:00:00 2001 From: David Carlier <[email protected]> Date: Tue, 29 Dec 2015 13:19:28 +0000 Subject: [PATCH 4/5] CLEANUP: protocols: void pointers arithmetic removal.
fourth patch which apply in one place only to the array of void pointers from sample struct. --- src/proto_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto_http.c b/src/proto_http.c index e362a96..1bd0bcf 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -11340,7 +11340,7 @@ int smp_fetch_cookie(const struct arg *args, struct sample *smp, const char *kw, continue; smp->ctx.a[0] = ctx->line + ctx->val; - smp->ctx.a[1] = smp->ctx.a[0] + ctx->vlen; + smp->ctx.a[1] = (char *)smp->ctx.a[0] + ctx->vlen; } smp->data.type = SMP_T_STR; -- 2.5.0

