diff --git a/include/aws/sdkutils/endpoints_rule_engine.h b/include/aws/sdkutils/endpoints_rule_engine.h index 65710ab..ac9416d 100644 --- a/include/aws/sdkutils/endpoints_rule_engine.h +++ b/include/aws/sdkutils/endpoints_rule_engine.h @@ -244,7 +244,7 @@ AWS_SDKUTILS_API int aws_endpoints_request_context_add_string_array( struct aws_allocator *allocator, struct aws_endpoints_request_context *context, struct aws_byte_cursor name, - struct aws_byte_cursor *value_array, + const struct aws_byte_cursor *value_array, size_t len); /* diff --git a/source/endpoints_rule_engine.c b/source/endpoints_rule_engine.c index 05b4b42..3096fd3 100644 --- a/source/endpoints_rule_engine.c +++ b/source/endpoints_rule_engine.c @@ -746,7 +746,7 @@ int aws_endpoints_request_context_add_string_array( struct aws_allocator *allocator, struct aws_endpoints_request_context *context, struct aws_byte_cursor name, - struct aws_byte_cursor *values, + const struct aws_byte_cursor *values, size_t len) { struct aws_endpoints_scope_value *val = aws_endpoints_scope_value_new(allocator, name);