mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-22 10:41:43 +00:00
No need to +1 for comparision in correct_known_resize
This commit is contained in:
parent
cfdeaf4786
commit
0f4090402d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue