Skip to content

Commit 2f16b09

Browse files
Simpler cast
1 parent a288f6d commit 2f16b09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/proxy_protocol.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ uint8_t pp_info_add_netns(pp_info_t *pp_info, const char *netns)
347347

348348
uint8_t pp_info_add_aws_vpce_id(pp_info_t *pp_info, const char *vpce_id)
349349
{
350-
uint16_t length = (uint16_t) (sizeof_pp2_tlv_aws_t + strlen(vpce_id));
350+
uint16_t length = sizeof_pp2_tlv_aws_t + (uint16_t) strlen(vpce_id);
351351
pp2_tlv_aws_t *pp2_tlv_aws = malloc(length);
352352
pp2_tlv_aws->type = PP2_SUBTYPE_AWS_VPCE_ID;
353353
memcpy(pp2_tlv_aws->value, vpce_id, strlen(vpce_id));

0 commit comments

Comments
 (0)