Skip to content

Fixed some issue with http_helpers while building in GCC 12.x #1742

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ajusted the buffer size of http_helpers to remove an error while comp…
…iling in GCC
  • Loading branch information
fborges22 committed May 3, 2023
commit ed34c71b1e9ca68af7b4e6b67d065d8b8f9131f1
2 changes: 1 addition & 1 deletion Release/src/http/common/http_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ size_t chunked_encoding::add_chunked_delimiters(_Out_writes_(buffer_size) uint8_
#ifdef _WIN32
sprintf_s(buffer, sizeof(buffer), "%8IX", bytes_read);
#else
snprintf(buffer, sizeof(buffer), "%08zx", bytes_read);
snprintf(buffer, sizeof(buffer), "%8zX", bytes_read);
#endif
memcpy(&data[0], buffer, 8);
while (data[offset] == ' ')
Expand Down