From 8b621518b68effe5dc2f9b49b0496c0eef419274 Mon Sep 17 00:00:00 2001 From: Daryl Poe Date: Mon, 29 Jul 2013 16:50:38 -0600 Subject: [PATCH] careful with passwd in compatibility.c (cherry picked from commit a4a5baf0da7c77c1d29a485f26abae6fac03a4a4) --- client/common/compatibility.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/common/compatibility.c b/client/common/compatibility.c index 8f14199b9..788b41354 100644 --- a/client/common/compatibility.c +++ b/client/common/compatibility.c @@ -473,7 +473,9 @@ int freerdp_client_parse_old_command_line_arguments(int argc, char** argv, rdpSe CommandLineSwitchCase(arg, "p") { settings->Password = _strdup(arg->Value); - fprintf(stderr, "-p %s -> /p:%s\n", arg->Value, arg->Value); + fprintf(stderr, "-p ****** -> /p:******\n"); + /* Hide the value from 'ps'. */ + FillMemory(arg->Value, strlen(arg->Value), '*'); } CommandLineSwitchCase(arg, "s") {