aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-auth.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-09-27 23:39:14 +0000
committerBruce Momjian <bruce@momjian.us>2004-09-27 23:39:14 +0000
commitb534a5605f32df19e903eeb35d7632ffe7c0a0a3 (patch)
tree004fcce03084afbd6eb7a984270817baa871bc9c /src/interfaces/libpq/fe-auth.c
parente1c8b37afb5669542272585245b0706fcad174da (diff)
downloadpostgresql-b534a5605f32df19e903eeb35d7632ffe7c0a0a3.tar.gz
postgresql-b534a5605f32df19e903eeb35d7632ffe7c0a0a3.zip
Remove use of large BUFSIZ for buffers and use the proper struct sizes.
This greatly helps threaded libpq programs.
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 8d1f669fd3b..71159134b63 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.91 2004/08/29 04:13:12 momjian Exp $
+ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-auth.c,v 1.92 2004/09/27 23:38:45 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -749,7 +749,7 @@ fe_getauthname(char *PQerrormsg)
if (GetUserName(username, &namesize))
name = username;
#else
- char pwdbuf[BUFSIZ];
+ char pwdbuf[sizeof(struct passwd)];
struct passwd pwdstr;
struct passwd *pw = NULL;