22 lines
542 B
Diff
22 lines
542 B
Diff
|
src/tool_getparam.c | 5 +++++
|
||
|
1 file changed, 5 insertions(+)
|
||
|
|
||
|
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
|
||
|
index 6d6cac3..de02cfd 100644
|
||
|
--- a/src/tool_getparam.c
|
||
|
+++ b/src/tool_getparam.c
|
||
|
@@ -552,8 +552,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
|