From: Jay Satiro Date: Fri, 22 May 2015 03:26:32 +0000 (-0400) Subject: telnet: Fix read-callback change for Windows builds X-Git-Tag: curl-7_43_0~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78ac944dc267481992a5edbbb5791028687420a7;p=thirdparty%2Fcurl.git telnet: Fix read-callback change for Windows builds Refer to b0143a2 for more information on the read-callback change. --- diff --git a/lib/telnet.c b/lib/telnet.c index 4ea049d21b..aabf99d485 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -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;