Skip to content

Commit fce39d3

Browse files
authored
Merge pull request #334 from eregon/fix-utf16_string_value_ptr-truffleruby
Fix utf16_string_value_ptr() for TruffleRuby
2 parents 28832a1 + 5aa746f commit fce39d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/sqlite3/database.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static char *
3131
utf16_string_value_ptr(VALUE str)
3232
{
3333
StringValue(str);
34-
rb_str_buf_cat(str, "\x00", 1L);
34+
rb_str_buf_cat(str, "\x00\x00", 2L);
3535
return RSTRING_PTR(str);
3636
}
3737

0 commit comments

Comments
 (0)