cURL-build-win32/patch/curl_tool_getparam.diff

30 lines
731 B
Diff

diff --git "a/src/tool_getparam.c" "b/src/tool_getparam.c"
index 508e567..a745b22 100644
--- "a/src/tool_getparam.c"
+++ "b/src/tool_getparam.c"
@@ -23,6 +23,10 @@
***************************************************************************/
#include "tool_setup.h"
+#ifndef HAVE_WRITABLE_ARGV
+#define HAVE_WRITABLE_ARGV 1
+#endif
+
#include "strcase.h"
#define ENABLE_CURLX_PRINTF
@@ -830,8 +834,13 @@ static void cleanarg(argv_item_t str)
* argument out so that the username:password isn't displayed in the
* system process list */
if(str) {
+#ifdef _UNICODE
+ size_t len = wcslen(str);
+ wmemset(str, L' ', len);
+#else
size_t len = strlen(str);
memset(str, ' ', len);
+#endif
}
}
#else