diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-04-21 01:03:33 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-04-21 01:03:33 +0000 |
commit | 5a99671515bb46b5f97eb9d90d1b613e95950c0c (patch) | |
tree | 6f2d3255db260324f2a33af4223b5f41dc24b672 /src | |
parent | b0bcf8aab2da6710ff8842b86fed93571e143cc8 (diff) | |
download | postgresql-5a99671515bb46b5f97eb9d90d1b613e95950c0c.tar.gz postgresql-5a99671515bb46b5f97eb9d90d1b613e95950c0c.zip |
Fix typo.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/libpq/pqcomm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqcomm.c index a14292a6d9a..f0db43239ce 100644 --- a/src/backend/libpq/pqcomm.c +++ b/src/backend/libpq/pqcomm.c @@ -29,7 +29,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * 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) } for (i = PqRecvPointer; i < PqRecvLength; i++) + { if (PqRecvBuffer[i] == '\0') { /* does not copy the \0 */ appendBinaryStringInfo(s, PqRecvBuffer + PqRecvPointer, i - PqRecvPointer); - PqRecvPointer += i + 1; + PqRecvPointer = i + 1; /* advance past \0 */ return 0; } + } /* If we're here we haven't got the \0 in the buffer yet. */ |