aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2000-04-11 19:00:31 +0000
committerBruce Momjian <bruce@momjian.us>2000-04-11 19:00:31 +0000
commitb68a56a5e9155fdda2ba5262e7a0e554905f5d17 (patch)
treea8e6b18f8ba56d0fe044f335572e34098efa307e
parentea81522034de1efacc9aa74771ba946047334d42 (diff)
downloadpostgresql-b68a56a5e9155fdda2ba5262e7a0e554905f5d17.tar.gz
postgresql-b68a56a5e9155fdda2ba5262e7a0e554905f5d17.zip
Thomas pointed out this bug in my non-blocking stuff.
Alfred Perlstein
-rw-r--r--src/interfaces/libpq/fe-misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interfaces/libpq/fe-misc.c b/src/interfaces/libpq/fe-misc.c
index d171c457d96..e6dd26d8fbb 100644
--- a/src/interfaces/libpq/fe-misc.c
+++ b/src/interfaces/libpq/fe-misc.c
@@ -25,7 +25,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.39 2000/02/07 23:10:11 petere Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.40 2000/04/11 19:00:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -115,6 +115,8 @@ pqPutBytes(const char *s, size_t nbytes, PGconn *conn)
Max(conn->outBufSize - conn->outCount, 0), nbytes);
return EOF;
}
+ /* fixup avail for while loop */
+ avail = Max(conn->outBufSize - conn->outCount, 0);
}
/*