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:
@ -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);
|
||||
|
Reference in New Issue
Block a user