diff -u3 -Hb Git-latest\lib\non-ascii.c lib\non-ascii.c --- Git-latest\lib\non-ascii.c Wed Apr 20 11:44:07 2011 +++ lib\non-ascii.c Wed Apr 20 12:20:28 2011 @@ -21,6 +21,12 @@ ***************************************************************************/ #include "setup.h" +#include "non-ascii.h" +#include "formdata.h" +#include "sendf.h" +#include "urldata.h" + +#include #ifdef CURL_DOES_CONVERSIONS @@ -37,10 +43,10 @@ #endif /* HAVE_ICONV */ /* - * Curl_convertclone() returns a malloced copy of the source string (if + * Curl_convert_clone() returns a malloced copy of the source string (if * returning CURLE_OK), with the data converted to network format. */ -CURLcode Curl_convertclone(struct SessionHandle *data, +CURLcode Curl_convert_clone(struct SessionHandle *data, const char *indata, size_t insize, char **outbuf) @@ -54,7 +60,7 @@ memcpy(convbuf, indata, insize); result = Curl_convert_to_network(data, convbuf, insize); - if(result) {s + if(result) { free(convbuf); return result; } diff -u3 -Hb Git-latest\lib\non-ascii.h lib\non-ascii.h --- Git-latest\lib\non-ascii.h Wed Apr 20 11:44:07 2011 +++ lib\non-ascii.h Wed Apr 20 12:21:05 2011 @@ -26,7 +26,7 @@ #include "urldata.h" /* - * Curl_convertclone() returns a malloced copy of the source string (if + * Curl_convert_clone() returns a malloced copy of the source string (if * returning CURLE_OK), with the data converted to network format. * * If no conversion was needed *outbuf may be NULL. diff -u3 -Hb Git-latest\lib\transfer.c lib\transfer.c --- Git-latest\lib\transfer.c Wed Apr 20 11:44:07 2011 +++ lib\transfer.c Wed Apr 20 12:04:41 2011 @@ -103,6 +103,7 @@ #include "multiif.h" #include "rtsp.h" #include "connect.h" +#include "non-ascii.h" #define _MPRINTF_REPLACE /* use our functions only */ #include