From b8c438f22d2a79332ac4a6cd8d4fba6e8a35a29a Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sun, 10 May 2009 10:25:23 +0000 Subject: Fix function call pointed data size argument mismatch on 64Bit systems --- lib/tftp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/tftp.c b/lib/tftp.c index 1cb128454..eff2a1cdc 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -661,6 +661,7 @@ static CURLcode tftp_tx(tftp_state_data_t *state, tftp_event_t event) struct SessionHandle *data = state->conn->data; int sbytes; int rblock; + int readcount; CURLcode res = CURLE_OK; struct SingleRequest *k = &data->req; @@ -707,8 +708,8 @@ static CURLcode tftp_tx(tftp_state_data_t *state, tftp_event_t event) state->state = TFTP_STATE_FIN; return CURLE_OK; } - res = Curl_fillreadbuffer(state->conn, state->blksize, - (int *)&state->sbytes); + res = Curl_fillreadbuffer(state->conn, state->blksize, &readcount); + state->sbytes = readcount; if(res) return res; sbytes = sendto(state->sockfd, (void *)state->spacket.data, -- cgit v1.2.3