X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/bcbca153505de435c881e71297fde83c3ac02cc1..478effbfd9c3cc5a627fc671d4bf94d13670d65f:/src/src/string.c diff --git a/src/src/string.c b/src/src/string.c index c6549bf93..3445f8a42 100644 --- a/src/src/string.c +++ b/src/src/string.c @@ -1132,7 +1132,7 @@ store_reset(g->s + (g->size = g->ptr + 1)); Arguments: g the growable-string p current end of data - count amount to grow by + count amount to grow by, offset from p */ static void @@ -1590,7 +1590,7 @@ while (*fp) } else if (g->ptr >= lim - width) { - gstring_grow(g, g->ptr, width - (lim - g->ptr)); + gstring_grow(g, g->ptr, width); lim = g->size - 1; gp = CS g->s + g->ptr; }