cURL-build-win32/patch/curl_tool_getparam.diff

19 lines
485 B
Diff
Raw Normal View History

2023-12-07 01:29:52 +01:00
diff --git "a/src/tool_getparam.c" "b/src/tool_getparam.c"
index 5fa1ace..a1b54f4 100644
--- "a/src/tool_getparam.c"
+++ "b/src/tool_getparam.c"
@@ -563,8 +563,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