Skip to content

Commit 5a99671

Browse files
committed
Fix typo.
1 parent b0bcf8a commit 5a99671

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/backend/libpq/pqcomm.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
3030
* Portions Copyright (c) 1994, Regents of the University of California
3131
*
32-
* $Id: pqcomm.c,v 1.131 2002/04/20 23:35:43 petere Exp $
32+
* $Id: pqcomm.c,v 1.132 2002/04/21 01:03:33 tgl Exp $
3333
*
3434
*-------------------------------------------------------------------------
3535
*/
@@ -585,14 +585,16 @@ pq_getstring(StringInfo s)
585585
}
586586

587587
for (i = PqRecvPointer; i < PqRecvLength; i++)
588+
{
588589
if (PqRecvBuffer[i] == '\0')
589590
{
590591
/* does not copy the \0 */
591592
appendBinaryStringInfo(s, PqRecvBuffer + PqRecvPointer,
592593
i - PqRecvPointer);
593-
PqRecvPointer += i + 1;
594+
PqRecvPointer = i + 1; /* advance past \0 */
594595
return 0;
595596
}
597+
}
596598

597599
/* If we're here we haven't got the \0 in the buffer yet. */
598600

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy