From e652c81e6610e68a50f21cb15fe50c10bba9c680 Mon Sep 17 00:00:00 2001 From: bostonbsd Date: Mon, 6 Feb 2023 17:37:40 -0500 Subject: [PATCH] Needed a -1 in a function --- src/sqlite/sqlite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sqlite/sqlite.c b/src/sqlite/sqlite.c index 0beb04a..7b3a28d 100644 --- a/src/sqlite/sqlite.c +++ b/src/sqlite/sqlite.c @@ -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;