Skip to content

Commit

Permalink
Needed a -1 in a function
Browse files Browse the repository at this point in the history
  • Loading branch information
BostonBSD committed Feb 6, 2023
1 parent 9a1a113 commit e652c81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sqlite/sqlite.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ static gchar *vradic_sqlte_cmd(gint8 num_args_cmd, const gchar *fmt,

/* Create the long format string [includes all args]. */
gchar *sql_cmd_fmt = strdup(fmt);
for (gushort g = 0; g < (args_count / num_args_cmd); g++) {
for (gushort g = 0; g < (args_count / num_args_cmd) - 1; g++) {
sql_cmd_tmp = g_strconcat(sql_cmd_fmt, fmt, NULL);
g_free(sql_cmd_fmt);
sql_cmd_fmt = sql_cmd_tmp;
Expand Down

0 comments on commit e652c81

Please # to comment.