From 78ac944dc267481992a5edbbb5791028687420a7 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Thu, 21 May 2015 23:26:32 -0400 Subject: telnet: Fix read-callback change for Windows builds Refer to b0143a2 for more information on the read-callback change. --- lib/telnet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/telnet.c b/lib/telnet.c index 4ea049d21..aabf99d48 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; -- cgit v1.2.3