summaryrefslogtreecommitdiff
path: root/plain_tool/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plain_tool/options.cpp')
-rw-r--r--plain_tool/options.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plain_tool/options.cpp b/plain_tool/options.cpp
index 1dcf8a2..f8dc187 100644
--- a/plain_tool/options.cpp
+++ b/plain_tool/options.cpp
@@ -92,12 +92,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++; \
}