git://git.exim.org
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a30109
)
Hintsdb: fix dumpdb for sqlite
author
Jeremy Harris
<jgh146exb@wizmail.org>
Fri, 28 Jun 2024 13:01:54 +0000
(14:01 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Fri, 28 Jun 2024 13:01:54 +0000
(14:01 +0100)
src/src/hintsdb.h
patch
|
blob
|
history
diff --git
a/src/src/hintsdb.h
b/src/src/hintsdb.h
index c5a856abc97bdb8783fae93e7fa02145a927e139..3fedfabcae7bf2c73ca446a6bb4d9e422d93b487 100644
(file)
--- a/
src/src/hintsdb.h
+++ b/
src/src/hintsdb.h
@@
-292,8
+292,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);