1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-11 20:28:21 +03:00

Cleanup use of 16 that should be NAMEDATALEN.

This commit is contained in:
Bruce Momjian
1998-07-20 16:57:18 +00:00
parent 34797d4225
commit 0da6358f37
14 changed files with 35 additions and 44 deletions

View File

@ -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);