(FUNCTION_NAME): Double buffer size each round to avoid problems with
authordrepper <drepper>
Mon, 13 Dec 2004 21:49:29 +0000 (21:49 +0000)
committerdrepper <drepper>
Mon, 13 Dec 2004 21:49:29 +0000 (21:49 +0000)
delays for some people's huge entries.

nss/getXXbyYY.c

index 854a3e8..dd0ac84 100644 (file)
@@ -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)
        {