Skip to content

Improve error message handling in DataManager#2839

Merged
salix5 merged 1 commit into
Fluorohydride:masterfrom
salix5:patch45
Jun 12, 2025
Merged

Improve error message handling in DataManager#2839
salix5 merged 1 commit into
Fluorohydride:masterfrom
salix5:patch45

Conversation

@salix5

@salix5 salix5 commented Jun 12, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@salix5 salix5 requested a review from Copilot June 12, 2025 11:06

Copilot AI left a comment

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.

Pull Request Overview

This PR improves error message handling in DataManager by replacing the manual buffer management using std::strncat with a safer std::snprintf call.

  • Use std::snprintf to securely format error messages.
  • Remove the redundant initialization of the error message buffer.

@salix5 salix5 merged commit bdd3995 into Fluorohydride:master Jun 12, 2025
8 checks passed
@salix5 salix5 deleted the patch45 branch June 12, 2025 11:11
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