From: Dale Weiler Date: Sun, 6 Jan 2013 10:37:09 +0000 (+0000) Subject: No need to +1 for comparision in correct_known_resize X-Git-Tag: before-library~363^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0f4090402d3f7955cf6d68f8025ed926a6d2845e;p=xonotic%2Fgmqcc.git No need to +1 for comparision in correct_known_resize --- 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);