From 5a4b43848ac21b3d831f00ce11136e20f820f0a0 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 7 Apr 2006 21:50:47 +0000 Subject: First commit of David McCreedy's EBCDIC and TPF changes. --- lib/tftp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/tftp.c') diff --git a/lib/tftp.c b/lib/tftp.c index 711bf1720..9c459a975 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -261,11 +261,10 @@ static void tftp_send_first(tftp_state_data_t *state, tftp_event_t event) if(data->set.upload) { /* If we are uploading, send an WRQ */ state->spacket.event = htons(TFTP_EVENT_WRQ); - filename = curl_unescape(filename, (int)strlen(filename)); + filename = curl_easy_unescape(data, filename, 0, NULL); state->conn->upload_fromhere = (char *)state->spacket.u.data.data; - if(data->set.infilesize != -1) { + if(data->set.infilesize != -1) Curl_pgrsSetUploadSize(data, data->set.infilesize); - } } else { /* If we are downloading, send an RRQ */ -- cgit v1.2.3