cURL-build-win32/patch/curl_tool_getparam.diff

33 lines
784 B
Diff
Raw Normal View History

2024-12-14 14:03:32 +01:00
src/tool_getparam.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
2025-02-05 23:47:33 +01:00
index 0ae1466..3e54e51 100644
2024-12-14 14:03:32 +01:00
--- 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"
2024-09-13 21:32:46 +02:00
#include "curlx.h"
2025-02-05 23:47:33 +01:00
@@ -554,8 +558,13 @@ static void cleanarg(argv_item_t str)
2024-08-01 22:24:44 +02:00
* argument out so that the username:password is not 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