From 0f4090402d3f7955cf6d68f8025ed926a6d2845e Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Sun, 6 Jan 2013 10:37:09 +0000 Subject: [PATCH] No need to +1 for comparision in correct_known_resize --- correct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/correct.c b/correct.c index 442afb2..5be4f35 100644 --- a/correct.c +++ b/correct.c @@ -457,7 +457,7 @@ static int correct_exist(char **array, size_t rows, char *ident) { static GMQCC_INLINE char **correct_known_resize(char **res, size_t *allocated, size_t size) { size_t oldallocated = *allocated; char **out; - if (size+1 < oldallocated) + if (size < oldallocated) return res; out = correct_pool_alloc(sizeof(*res) * oldallocated + 32); -- 2.39.2