another size_t issue diff --git a/bashline.c b/bashline.c index 0047caef..9df26d2e 100644 --- a/bashline.c +++ b/bashline.c @@ -919,7 +919,7 @@ hostnames_matching (const char *text) continue;
/* OK, it matches. Add it to the list. */ - if (nmatch >= (rsize - 1)) + if ((nmatch + 1) >= rsize) { rsize = (rsize + 16) - (rsize % 16); result = strvec_resize (result, rsize);