diff options
author | Yang Tse <yangsita@gmail.com> | 2009-05-10 10:25:23 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-05-10 10:25:23 +0000 |
commit | b8c438f22d2a79332ac4a6cd8d4fba6e8a35a29a (patch) | |
tree | 138d622b16c0d9392dbc7daba905fe85879a7770 | |
parent | a85271ce0a6f60fa09b95a7fa2c9b3946b4ea2f2 (diff) |
Fix function call pointed data size argument mismatch on 64Bit systems
-rw-r--r-- | lib/tftp.c | 5 |
1 files 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, |