Skip to content

Commit fad4c99

Browse files
authored
Merge pull request #2709 from mwoolweaver/restore-buffer-size
Increase buffer length for query string
2 parents 5ce1ca2 + 0b2b6df commit fad4c99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/database/query-table.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ int get_number_of_queries_in_DB(sqlite3 *db, const char *tablename, double *earl
516516
db = get_memdb();
517517

518518
// Build query string based on whether we need the earliest timestamp too
519-
const size_t buflen = 37 + strlen(tablename);
519+
const size_t buflen = 38 + strlen(tablename);
520520
char *querystr = calloc(buflen, sizeof(char));
521521
if(earliest_timestamp != NULL)
522522
{

0 commit comments

Comments
 (0)