2024-08-01 22:24:44 +02:00
|
|
|
src/tool_getparam.c | 9 +++++++++
|
|
|
|
1 file changed, 9 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
|
|
|
|
index 4c9392c..d7310d4 100644
|
|
|
|
--- a/src/tool_getparam.c
|
|
|
|
+++ b/src/tool_getparam.c
|
2023-12-07 03:46:35 +01:00
|
|
|
@@ -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
|
2024-08-01 22:24:44 +02:00
|
|
|
@@ -838,8 +842,13 @@ static void cleanarg(argv_item_t str)
|
|
|
|
* argument out so that the username:password is not displayed in the
|
2023-04-04 22:14:55 +02:00
|
|
|
* 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
|
|
|
|
}
|
|
|
|
}
|
2023-09-24 16:27:44 +02:00
|
|
|
#else
|