diff --git a/c_src/sqlite3_drv.c b/c_src/sqlite3_drv.c index 309d67c..101d7ef 100644 --- a/c_src/sqlite3_drv.c +++ b/c_src/sqlite3_drv.c @@ -357,7 +357,7 @@ static inline int decode_and_bind_param( // include space for null separator char_buf_val = driver_alloc((*p_size + 1) * sizeof(char)); ei_decode_string(buffer, p_index, char_buf_val); - result = sqlite3_bind_text(statement, param_index, char_buf_val, *p_size, &driver_free_fun); + result = sqlite3_bind_text(statement, param_index, char_buf_val, *p_size, &driver_free_fun); break; case ERL_BINARY_EXT: char_buf_val = driver_alloc(*p_size * sizeof(char)); diff --git a/test/sqlite3_test.erl b/test/sqlite3_test.erl index f35297c..c740dcb 100644 --- a/test/sqlite3_test.erl +++ b/test/sqlite3_test.erl @@ -51,7 +51,7 @@ all_test_() -> ?FuncTest(unicode), ?FuncTest(acc_string_encoding), ?FuncTest(large_offset), - ?FuncTest(issue13)]}. + ?FuncTest(issue13)]}. open_db() -> sqlite3:open(ct, [in_memory]).