diff options
author | robot-contrib <[email protected]> | 2022-12-02 11:40:11 +0300 |
---|---|---|
committer | robot-contrib <[email protected]> | 2022-12-02 11:40:11 +0300 |
commit | 7c06d7160fb27755c764763cb9fd1bf917d1c166 (patch) | |
tree | 39bebe3abad68108054bc13702925fc627898cfe /contrib/restricted/aws/aws-c-common/source/uri.c | |
parent | b1f4ffc9c8abff3ba58dc1ec9a9f92d2f0de6806 (diff) |
Update contrib/restricted/aws/aws-c-common to 0.8.5
Diffstat (limited to 'contrib/restricted/aws/aws-c-common/source/uri.c')
-rw-r--r-- | contrib/restricted/aws/aws-c-common/source/uri.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/restricted/aws/aws-c-common/source/uri.c b/contrib/restricted/aws/aws-c-common/source/uri.c index f91f2921e3a..05596414200 100644 --- a/contrib/restricted/aws/aws-c-common/source/uri.c +++ b/contrib/restricted/aws/aws-c-common/source/uri.c @@ -14,7 +14,6 @@ #if _MSC_VER # pragma warning(disable : 4221) /* aggregate initializer using local variable addresses */ # pragma warning(disable : 4204) /* non-constant aggregate initializer */ -# pragma warning(disable : 4996) /* sprintf */ #endif enum parser_state { @@ -143,7 +142,7 @@ int aws_uri_init_from_builder_options( if (options->port) { aws_byte_buf_append(&uri->uri_str, &port_app); char port_arr[6] = {0}; - sprintf(port_arr, "%" PRIu16, options->port); + snprintf(port_arr, sizeof(port_arr), "%" PRIu16, options->port); struct aws_byte_cursor port_csr = aws_byte_cursor_from_c_str(port_arr); aws_byte_buf_append(&uri->uri_str, &port_csr); } |