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

Don't use rb_str_new_static on heap data #322

Merged
merged 1 commit into from
Oct 24, 2020
Merged

Conversation

XrXr
Copy link
Contributor

@XrXr XrXr commented Oct 24, 2020

rb_str_new_static() only takes C string literals.
Using rb_str_new() means an extra memcpy(), but let's go for correctness
first.

rb_str_new_static() only takes C string literals.
Using rb_str_new() means an extra memcpy(), but let's go for correctness
first.
@XrXr XrXr requested a review from burke as a code owner October 24, 2020 02:44
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