Commit 5a996715 authored by Tom Lane's avatar Tom Lane

Fix typo.

parent b0bcf8aa
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $Id: pqcomm.c,v 1.131 2002/04/20 23:35:43 petere Exp $ * $Id: pqcomm.c,v 1.132 2002/04/21 01:03:33 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -585,14 +585,16 @@ pq_getstring(StringInfo s) ...@@ -585,14 +585,16 @@ pq_getstring(StringInfo s)
} }
for (i = PqRecvPointer; i < PqRecvLength; i++) for (i = PqRecvPointer; i < PqRecvLength; i++)
{
if (PqRecvBuffer[i] == '\0') if (PqRecvBuffer[i] == '\0')
{ {
/* does not copy the \0 */ /* does not copy the \0 */
appendBinaryStringInfo(s, PqRecvBuffer + PqRecvPointer, appendBinaryStringInfo(s, PqRecvBuffer + PqRecvPointer,
i - PqRecvPointer); i - PqRecvPointer);
PqRecvPointer += i + 1; PqRecvPointer = i + 1; /* advance past \0 */
return 0; return 0;
} }
}
/* If we're here we haven't got the \0 in the buffer yet. */ /* If we're here we haven't got the \0 in the buffer yet. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment