Commit 2c15d97
authored
Ensure string options are converted to proper strings before passing to ccall (#204)
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.1 parent a8ae1c7 commit 2c15d97
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
964 | 964 | | |
965 | 965 | | |
966 | 966 | | |
| 967 | + | |
967 | 968 | | |
968 | 969 | | |
| 970 | + | |
969 | 971 | | |
970 | 972 | | |
| 973 | + | |
971 | 974 | | |
972 | | - | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
973 | 980 | | |
974 | | - | |
975 | 981 | | |
976 | 982 | | |
977 | 983 | | |
| |||
0 commit comments