summaryrefslogtreecommitdiff
path: root/anyrtpproxy/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'anyrtpproxy/options.cpp')
-rw-r--r--anyrtpproxy/options.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/anyrtpproxy/options.cpp b/anyrtpproxy/options.cpp
index 6ddd9dc..bdddf75 100644
--- a/anyrtpproxy/options.cpp
+++ b/anyrtpproxy/options.cpp
@@ -112,17 +112,18 @@ Options::~Options()
i++; \
}
-#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++; \
}
-
#define PARSE_CSLIST_PARAM(SHORT, LONG, LIST) \
else if(str == SHORT || str == LONG) \
{ \