1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +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

@ -10,7 +10,7 @@
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.c,v 1.92 2004/09/27 23:38:45 momjian Exp $
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.c,v 1.93 2004/09/28 00:06:02 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -749,7 +749,7 @@ fe_getauthname(char *PQerrormsg)
if (GetUserName(username, &namesize))
name = username;
#else
char pwdbuf[sizeof(struct passwd)];
char pwdbuf[BUFSIZ];
struct passwd pwdstr;
struct passwd *pw = NULL;