aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-07-20 16:57:18 +0000
committerBruce Momjian <bruce@momjian.us>1998-07-20 16:57:18 +0000
commit0da6358f373c2736626b4189a3e7e413e107b9a0 (patch)
tree686ef135cf4f3cb094b833f1d754e95e4e7766fd /src/backend/access/gist/gist.c
parent34797d42253d488423b7a86a4a8335786b65cb59 (diff)
downloadpostgresql-0da6358f373c2736626b4189a3e7e413e107b9a0.tar.gz
postgresql-0da6358f373c2736626b4189a3e7e413e107b9a0.zip
Cleanup use of 16 that should be NAMEDATALEN.
Diffstat (limited to 'src/backend/access/gist/gist.c')
-rw-r--r--src/backend/access/gist/gist.c2
1 files changed, 1 insertions, 1 deletions
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);