Skip to content
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

Remediate a few more C-style strings #7064

Conversation

mkruselj
Copy link
Collaborator

Addresses #6730

snprintf(msg, 1024, "SQL Error[%d]: %s", rc, std::runtime_error::what());
return msg;
static std::string msg =
fmt::format("SQL Error[{:d}]: {:s}", rc, std::runtime_error::what());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh no this is very wrong! Pls don’t merge

Copy link
Collaborator

Choose a reason for hiding this comment

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

The old one is also super wierd. I need to peek

@baconpaul
Copy link
Collaborator

Ok the parch db one is you correctly porting my insane code. Can you back it out and I will do the right fix?

thrn unit tests

@mkruselj mkruselj closed this Jul 5, 2023
@mkruselj mkruselj deleted the remediate-a-few-more-cstyle-strings branch July 5, 2023 08:53
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.

2 participants