aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-05-10 10:25:23 +0000
committerYang Tse <yangsita@gmail.com>2009-05-10 10:25:23 +0000
commitb8c438f22d2a79332ac4a6cd8d4fba6e8a35a29a (patch)
tree138d622b16c0d9392dbc7daba905fe85879a7770 /lib
parenta85271ce0a6f60fa09b95a7fa2c9b3946b4ea2f2 (diff)
Fix function call pointed data size argument mismatch on 64Bit systems
Diffstat (limited to 'lib')
-rw-r--r--lib/tftp.c5
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,