Skip to content
Snippets Groups Projects
Commit b8c438f2 authored by Yang Tse's avatar Yang Tse
Browse files

Fix function call pointed data size argument mismatch on 64Bit systems
parent a85271ce
No related branches found
No related tags found
No related merge requests found
...@@ -661,6 +661,7 @@ static CURLcode tftp_tx(tftp_state_data_t *state, tftp_event_t event) ...@@ -661,6 +661,7 @@ static CURLcode tftp_tx(tftp_state_data_t *state, tftp_event_t event)
struct SessionHandle *data = state->conn->data; struct SessionHandle *data = state->conn->data;
int sbytes; int sbytes;
int rblock; int rblock;
int readcount;
CURLcode res = CURLE_OK; CURLcode res = CURLE_OK;
struct SingleRequest *k = &data->req; struct SingleRequest *k = &data->req;
...@@ -707,8 +708,8 @@ static CURLcode tftp_tx(tftp_state_data_t *state, tftp_event_t event) ...@@ -707,8 +708,8 @@ static CURLcode tftp_tx(tftp_state_data_t *state, tftp_event_t event)
state->state = TFTP_STATE_FIN; state->state = TFTP_STATE_FIN;
return CURLE_OK; return CURLE_OK;
} }
res = Curl_fillreadbuffer(state->conn, state->blksize, res = Curl_fillreadbuffer(state->conn, state->blksize, &readcount);
(int *)&state->sbytes); state->sbytes = readcount;
if(res) if(res)
return res; return res;
sbytes = sendto(state->sockfd, (void *)state->spacket.data, sbytes = sendto(state->sockfd, (void *)state->spacket.data,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment