about summary refs log tree commit diff
path: root/nss/getXXbyYY.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-12-13 21:50:20 +0000
committerUlrich Drepper <drepper@redhat.com>2004-12-13 21:50:20 +0000
commite1b27ffbf604546725eca78ef498b88fd60c4f42 (patch)
treef7dfd2321f16eaf4e8f2ab1797927a435259d2f3 /nss/getXXbyYY.c
parent13d91a6eec2114fdfe8fac60323347335a1e0697 (diff)
downloadglibc-e1b27ffbf604546725eca78ef498b88fd60c4f42.tar.gz
glibc-e1b27ffbf604546725eca78ef498b88fd60c4f42.tar.xz
glibc-e1b27ffbf604546725eca78ef498b88fd60c4f42.zip
2004-12-13  Ulrich Drepper  <drepper@redhat.com>

	* nss/getnssent.c (__nss_getent): Double buffer size each round to
	avoid problems with delays for some people's huge entries.
	* nss/getXXbyYY.c (FUNCTION_NAME): Likewise.
Diffstat (limited to 'nss/getXXbyYY.c')
-rw-r--r--nss/getXXbyYY.c2
1 files changed, 1 insertions, 1 deletions
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)
 	{