Skip to content

Conversation

@bobtista
Copy link

@bobtista bobtista commented Oct 29, 2025

Addresses feedback on PR #1712 by removing unnecessary intermediate buffer copies before converting strcpy to strlcpy.
Merge before #1712

Changes:

  • WorldBuilder files: Replace redundant strcpy+strlcat chains with single snprintf calls
  • Eliminate temporary buffers (findBuf in WHeightMapEdit) where not needed

@Skyaero42
Copy link

I would have liked you to communicate about this to avoid double work.

@bobtista
Copy link
Author

I would have liked you to communicate about this to avoid double work.

That's fair. Messaging you now :)

@bobtista bobtista force-pushed the bobtista/refactor-redundant-buffer-copies branch from f947151 to 0f8ff3a Compare October 29, 2025 19:11
@bobtista bobtista force-pushed the bobtista/refactor-redundant-buffer-copies branch from 0f8ff3a to 696bcea Compare October 29, 2025 21:20
Copy link

@xezon xezon left a comment

Choose a reason for hiding this comment

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

Change title needs to be a bit more specific.

@bobtista bobtista changed the title refactor: Eliminate redundant buffer copies refactor: Eliminate redundant buffer copies in WorldBuilder path handling Oct 30, 2025
@xezon xezon changed the title refactor: Eliminate redundant buffer copies in WorldBuilder path handling refactor: Simplify path string formatting in World Builder Oct 30, 2025
Copy link

@xezon xezon left a comment

Choose a reason for hiding this comment

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

Looks good.

@xezon xezon requested a review from Skyaero42 October 30, 2025 18:50
@xezon xezon added the Refactor Edits the code with insignificant behavior changes, is never user facing label Oct 30, 2025
@xezon xezon merged commit cf55e87 into TheSuperHackers:main Oct 31, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor Edits the code with insignificant behavior changes, is never user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants