Skip to content

Conversation

@juj
Copy link
Collaborator

@juj juj commented Nov 19, 2025

strncpy() is evil that if the string length exceeds the copy length, the destination string is left null-terminated. So null terminate manually.

@juj juj merged commit 425a4bc into emscripten-core:main Nov 20, 2025
31 of 34 checks passed
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