aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-auth.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-09-28 00:07:01 +0000
committerBruce Momjian <bruce@momjian.us>2004-09-28 00:07:01 +0000
commit1ad687827607ee02a51182ea8a255c230e61c740 (patch)
tree82649551804981aafab6bbfb823803ccfb6d86b6 /src/interfaces/libpq/fe-auth.c
parentdd67707a64070532c12a7a2b51f629c64fe7ae99 (diff)
downloadpostgresql-1ad687827607ee02a51182ea8a255c230e61c740.tar.gz
postgresql-1ad687827607ee02a51182ea8a255c230e61c740.zip
Revert patch that removed BUFSIZ usage. The memory has to hold the
structures plus pointers used by the structure.
Diffstat (limited to 'src/interfaces/libpq/fe-auth.c')
-rw-r--r--src/interfaces/libpq/fe-auth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-auth.c b/src/interfaces/libpq/fe-auth.c
index 71159134b63..17862a0c807 100644
--- a/src/interfaces/libpq/fe-auth.c
+++ b/src/interfaces/libpq/fe-auth.c
@@ -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;