Skip to content

Commit f1001eb

Browse files
committed
out_stackdriver: add type cast
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 9d9771f commit f1001eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/out_stackdriver/stackdriver_http_request.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ static void validate_latency(msgpack_object_str latency_in_payload,
203203
}
204204

205205
regex = flb_regex_create(pattern);
206-
status = flb_regex_match(regex, latency_in_payload.ptr, latency_in_payload.size);
206+
status = flb_regex_match(regex,
207+
(unsigned char *) latency_in_payload.ptr,
208+
latency_in_payload.size);
207209
flb_regex_destroy(regex);
208210
flb_sds_destroy(pattern);
209211

0 commit comments

Comments
 (0)