From 0da6358f373c2736626b4189a3e7e413e107b9a0 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 20 Jul 1998 16:57:18 +0000 Subject: Cleanup use of 16 that should be NAMEDATALEN. --- src/backend/access/gist/gist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/access/gist/gist.c') diff --git a/src/backend/access/gist/gist.c b/src/backend/access/gist/gist.c index efa5286c1f4..5003204df4a 100644 --- a/src/backend/access/gist/gist.c +++ b/src/backend/access/gist/gist.c @@ -1347,7 +1347,7 @@ text_range_out(TXTRANGE *r) if (r == NULL) return (NULL); - result = (char *) palloc(16 + VARSIZE(TRLOWER(r)) + VARSIZE(TRUPPER(r)) + result = (char *) palloc(NAMEDATALEN + VARSIZE(TRLOWER(r)) + VARSIZE(TRUPPER(r)) - 2 * VARHDRSZ); lower = (char *) palloc(VARSIZE(TRLOWER(r)) + 1 - VARHDRSZ); -- cgit v1.2.3