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

Ensure string options are converted to proper strings before passing … #204

Merged
merged 1 commit into from
Oct 25, 2022

Conversation

quinnj
Copy link
Member

@quinnj quinnj commented Oct 25, 2022

…to ccall

Proper fix to #201. The core issue here is that if you take the pointer of a SubString, it doesn't properly account for the substring length, because C strings continue until the NUL termination.

…to ccall

Proper fix to #201. The core issue here is that if you take the `pointer` of a SubString,
it doesn't properly account for the _substring_ length, because C strings continue
until the NUL termination.
@codecov
Copy link

codecov bot commented Oct 25, 2022

Codecov Report

Merging #204 (e997f5f) into main (a8ae1c7) will decrease coverage by 0.10%.
The diff coverage is 42.85%.

@@            Coverage Diff             @@
##             main     #204      +/-   ##
==========================================
- Coverage   64.47%   64.36%   -0.11%     
==========================================
  Files           9        9              
  Lines        1109     1114       +5     
==========================================
+ Hits          715      717       +2     
- Misses        394      397       +3     
Impacted Files Coverage Δ
src/api/capi.jl 33.33% <42.85%> (+0.19%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@quinnj quinnj merged commit 2c15d97 into main Oct 25, 2022
@quinnj quinnj deleted the jq/string_opts branch October 25, 2022 05:29
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.

1 participant