From 132d7ce17343977e2b853d379028b2534eba3b1f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 13 Dec 2004 21:49:29 +0000 Subject: [PATCH] (FUNCTION_NAME): Double buffer size each round to avoid problems with delays for some people's huge entries. --- nss/getXXbyYY.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nss/getXXbyYY.c b/nss/getXXbyYY.c index 854a3e859b..dd0ac840eb 100644 --- a/nss/getXXbyYY.c +++ b/nss/getXXbyYY.c @@ -123,7 +123,7 @@ FUNCTION_NAME (ADD_PARAMS) ) { char *new_buf; - buffer_size += BUFLEN; + buffer_size *= 2; new_buf = (char *) realloc (buffer, buffer_size); if (new_buf == NULL) { -- 2.11.4.GIT