mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +03:00
Corrected the check for *message truncated* for the future use.
This commit is contained in:
@ -202,7 +202,7 @@ SOCK_get_string(SocketClass *self, char *buffer, int bufsize)
|
||||
{
|
||||
register int lf = 0;
|
||||
|
||||
for (lf = 0; lf < bufsize; lf++)
|
||||
for (lf = 0; lf < bufsize - 1; lf++)
|
||||
if (!(buffer[lf] = SOCK_get_next_byte(self)))
|
||||
return FALSE;
|
||||
|
||||
|
Reference in New Issue
Block a user