projects
/
users
/
c2main
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea81522
)
Thomas pointed out this bug in my non-blocking stuff.
author
Bruce Momjian
<
[email protected]
>
Tue, 11 Apr 2000 19:00:31 +0000
(19:00 +0000)
committer
Bruce Momjian
<
[email protected]
>
Tue, 11 Apr 2000 19:00:31 +0000
(19:00 +0000)
Alfred Perlstein
src/interfaces/libpq/fe-misc.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/libpq/fe-misc.c
b/src/interfaces/libpq/fe-misc.c
index d171c457d96558d4db0d01f1b6eefccdd80ae2cf..e6dd26d8fbb91eb2f61545d6b32998b3f6370ff9 100644
(file)
--- 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);
}
/*