From 51f62d505e2aba66bf7870c7bd005cd32e7d0953 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 25 Oct 1999 03:08:03 +0000 Subject: Standardize on MAXPGPATH as the size of a file pathname buffer, eliminating some wildly inconsistent coding in various parts of the system. I set MAXPGPATH = 1024 in config.h.in. If anyone is really convinced that there ought to be a configure-time test to set the value, go right ahead ... but I think it's a waste of time. --- src/interfaces/libpq/fe-auth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/interfaces/libpq/fe-auth.c') diff --git a/src/interfaces/libpq/fe-auth.c b/src/interfaces/libpq/fe-auth.c index 574d78c25d5..fe92bd6964a 100644 --- a/src/interfaces/libpq/fe-auth.c +++ b/src/interfaces/libpq/fe-auth.c @@ -9,7 +9,7 @@ * exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes). * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.33 1999/08/31 01:37:36 tgl Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.34 1999/10/25 03:08:00 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -127,7 +127,7 @@ pg_krb4_init() */ if (realm = getenv("PGREALM")) { - char tktbuf[MAXPATHLEN]; + char tktbuf[MAXPGPATH]; (void) sprintf(tktbuf, "%s@%s", tkt_string(), realm); krb_set_tkt_string(tktbuf); @@ -272,7 +272,7 @@ pg_krb5_init(void) krb5_error_code code; char *realm, *defname; - char tktbuf[MAXPATHLEN]; + char tktbuf[MAXPGPATH]; static krb5_ccache ccache = (krb5_ccache) NULL; if (ccache) -- cgit v1.2.3