Skip to content

Commit

Permalink
telnet: Fix read-callback change for Windows builds
Browse files Browse the repository at this point in the history
Refer to b0143a2 for more information on the read-callback change.
  • Loading branch information
jay committed May 22, 2015
1 parent ee04c20 commit 78ac944
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/telnet.c
Expand Up @@ -1423,7 +1423,8 @@ static CURLcode telnet_do(struct connectdata *conn, bool *done)
for(;;) {
if(data->set.is_fread_set) {
/* read from user-supplied method */
result = (int) conn->fread_func(buf, 1, BUFSIZE - 1, data->set.in);
result = (int)data->set.fread_func(buf, 1, BUFSIZE - 1,
data->set.in);
if(result == CURL_READFUNC_ABORT) {
keepon = FALSE;
result = CURLE_READ_ERROR;
Expand Down

0 comments on commit 78ac944

Please sign in to comment.