1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Revert patch that removed BUFSIZ usage. The memory has to hold the

structures plus pointers used by the structure.
This commit is contained in:
Bruce Momjian
2004-09-28 00:07:01 +00:00
parent dd67707a64
commit 1ad6878276
4 changed files with 12 additions and 10 deletions

View File

@ -12,7 +12,7 @@
* Copyright (c) 2003, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/port/getaddrinfo.c,v 1.14 2004/09/27 23:39:14 momjian Exp $
* $PostgreSQL: pgsql/src/port/getaddrinfo.c,v 1.15 2004/09/28 00:07:01 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -85,7 +85,7 @@ getaddrinfo(const char *node, const char *service,
#ifdef FRONTEND
struct hostent hpstr;
char buf[sizeof(struct hostent)];
char buf[BUFSIZ];
int herrno = 0;
pqGethostbyname(node, &hpstr, buf, sizeof(buf),