Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Mar 11, 2024
1 parent e89c1d3 commit fcd4777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binding.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ bare_sqlite3_exec (js_env_t *env, js_callback_info_t *info) {

utf8_t *query = (utf8_t *) sqlite3_malloc(sizeof(utf8_t) * query_length + 1);

js_get_value_string_utf8(env, argv[1], query, query_length, NULL);
js_get_value_string_utf8(env, argv[1], query, query_length + 1, NULL);
bare_sqlite3_warning("query is %s\n", query);

char *err = NULL;
Expand Down

0 comments on commit fcd4777

Please sign in to comment.