projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6af1a4
)
* StrBufReadBLOBBuffered(): tell read to give us as much as our buffer can bear,...
author
Wilfried Göesgens
<willi@citadel.org>
Fri, 21 May 2010 19:25:42 +0000
(19:25 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Fri, 21 May 2010 19:25:42 +0000
(19:25 +0000)
libcitadel/lib/stringbuf.c
patch
|
blob
|
history
diff --git
a/libcitadel/lib/stringbuf.c
b/libcitadel/lib/stringbuf.c
index b3c3fefb9697effc0026eaac402da5cbe1407fb4..97be33b15d06fb58a5d43001dcbeabf2555f40d6 100644
(file)
--- a/
libcitadel/lib/stringbuf.c
+++ b/
libcitadel/lib/stringbuf.c
@@
-3633,7
+3633,7
@@
int StrBufReadBLOBBuffered(StrBuf *Blob,
}
rlen = read(*fd,
ptr,
-
nBytes - nRead
);
+
IOBuf->BufSize - (ptr - IOBuf->buf)
);
if (rlen == -1) {
close(*fd);
*fd = -1;