From 344ce83a10fc6dea31a3d8fc3ba6c578f3efa742 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 12 Apr 2008 09:48:14 +0000 Subject: added key/salt options blanking to all other tools --- anymuxOptions.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'anymuxOptions.cpp') diff --git a/anymuxOptions.cpp b/anymuxOptions.cpp index 418eebd..c892e26 100644 --- a/anymuxOptions.cpp +++ b/anymuxOptions.cpp @@ -101,12 +101,14 @@ Options::~Options() i+=2; \ } -#define PARSE_HEXSTRING_PARAM(SHORT, LONG, VALUE) \ +#define PARSE_HEXSTRING_PARAM_SEC(SHORT, LONG, VALUE) \ else if(str == SHORT || str == LONG) \ { \ if(argc < 1 || argv[i+1][0] == '-') \ return false; \ VALUE = Buffer(std::string(argv[i+1])); \ + for(size_t j=0; j < strlen(argv[i+1]); ++j) \ + argv[i+1][j] = '#'; \ argc--; \ i++; \ } -- cgit v1.2.3