Gitweb:
https://git.exim.org/exim.git/commitdiff/459315d9e400695d3cf6e256e579f7e41e6533b3
Commit: 459315d9e400695d3cf6e256e579f7e41e6533b3
Parent: c1ee83eb81665eac64862f3ad66ecf2ec056b1ec
Author: Jeremy Harris <jgh146exb@???>
AuthorDate: Fri Jun 28 13:57:02 2024 +0100
Committer: Jeremy Harris <jgh146exb@???>
CommitDate: Fri Jun 28 14:02:52 2024 +0100
Hintsdb: fix dumpdb for sqlite
---
src/src/hintsdb/hints_sqlite.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/src/hintsdb/hints_sqlite.h b/src/src/hintsdb/hints_sqlite.h
index 70efbf767..21ebd4f01 100644
--- a/src/src/hintsdb/hints_sqlite.h
+++ b/src/src/hintsdb/hints_sqlite.h
@@ -246,8 +246,8 @@ int i;
BOOL ret;
# ifdef COMPILE_UTILITY
-qry = malloc((i = snprintf(NULL, 0, FMT, *cursor)));
-snprintf(CS qry, i-1, FMT, *cursor);
+if (!(qry = malloc((i = snprintf(NULL, 0, FMT, *cursor))+1))) return FALSE;
+snprintf(CS qry, i, FMT, *cursor);
/* fprintf(stderr, "exim_dbscan(%s)\n", qry); */
ret = exim_dbget__(dbp, qry, key);
free(qry);
--
## subscription configuration (requires account):
##
https://lists.exim.org/mailman3/postorius/lists/exim-cvs.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-cvs-unsubscribe@???
## Exim details at
http://www.exim.org/
## Please use the Wiki with this list -
http://wiki.exim.org/