projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab96e2d
)
David Byron pointed out that this -1 on the buffer size is pointless since
author
Daniel Stenberg
<daniel@haxx.se>
Fri, 4 Feb 2005 13:42:41 +0000
(13:42 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Fri, 4 Feb 2005 13:42:41 +0000
(13:42 +0000)
the buffer is already BUFSIZE +1 one big to fit the extra trailing zero. This
change is reported to fix David's weird SSL problem...
lib/transfer.c
patch
|
blob
|
history
diff --git
a/lib/transfer.c
b/lib/transfer.c
index
aed230a
..
bf67842
100644
(file)
--- a/
lib/transfer.c
+++ b/
lib/transfer.c
@@
-285,7
+285,7
@@
CURLcode Curl_readwrite(struct connectdata *conn,
read or we get a EWOULDBLOCK */
do {
size_t buffersize = data->set.buffer_size?
- data->set.buffer_size:BUFSIZE
-1
;
+ data->set.buffer_size:BUFSIZE;
/* receive data from the network! */
int readrc = Curl_read(conn, conn->sockfd, k->buf, buffersize, &nread);