2023-04-04 22:14:55 +02:00
|
|
|
src/tool_getparam.c | 5 +++++
|
|
|
|
1 file changed, 5 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
|
2023-09-23 20:41:43 +02:00
|
|
|
index e446762..a3be6ac 100644
|
2023-04-04 22:14:55 +02:00
|
|
|
--- a/src/tool_getparam.c
|
|
|
|
+++ b/src/tool_getparam.c
|
2023-09-23 20:41:43 +02:00
|
|
|
@@ -562,8 +562,13 @@ static void cleanarg(argv_item_t str)
|
2023-04-04 22:14:55 +02:00
|
|
|
* 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
|
|
|
|
}
|
|
|
|
}
|
2023-09-23 20:41:43 +02:00
|
|
|
#else
|