Skip to content

Comments

Ensure C-string arguments from string_views are null-terminated#6

Open
wandernauta wants to merge 1 commit intoberthubert:mainfrom
wandernauta:stringview
Open

Ensure C-string arguments from string_views are null-terminated#6
wandernauta wants to merge 1 commit intoberthubert:mainfrom
wandernauta:stringview

Conversation

@wandernauta
Copy link

This requires taking copies; in all cases the strings are relatively short. There is no safe way to check whether string_views are already NULL-terminated.

Fixes #5.

This requires taking copies; in all cases the strings are relatively short.
There is no safe way to check whether string_views are already NULL-terminated.

Fixes berthubert#5.
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.

std::string_view is used with functions expecting null-terminated strings

1 participant