Skip to content

Explicitly use n* version of vsnprintf#4957

Merged
pow2clk merged 1 commit intomicrosoft:mainfrom
pow2clk:fixmac
Jan 20, 2023
Merged

Explicitly use n* version of vsnprintf#4957
pow2clk merged 1 commit intomicrosoft:mainfrom
pow2clk:fixmac

Conversation

@pow2clk
Copy link
Copy Markdown
Collaborator

@pow2clk pow2clk commented Jan 20, 2023

Newest clang makes use of older version a warning, which we get as an error

Newest clang makes use of older version a warning, which we get as an
error
@pow2clk pow2clk requested a review from python3kgae January 20, 2023 20:19
char msg[512];
va_start(Args, pError);
vsprintf_s(msg, pError, Args);
vsnprintf_s(msg, _countof(msg), pError, Args);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the size will always be 512?

@AppVeyorBot
Copy link
Copy Markdown

@pow2clk pow2clk merged commit 79efe53 into microsoft:main Jan 20, 2023
@pow2clk pow2clk deleted the fixmac branch January 20, 2023 22:30
pow2clk pushed a commit that referenced this pull request Jan 28, 2023
Newest clang makes use of older version a warning, which we get as an
error

(cherry picked from commit 79efe53)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants