[ox/clargs] Fix overlapping memcpy that asan is being pedantic about
This commit is contained in:
parent
9bd2a5a5ee
commit
9c63f26684
2
deps/ox/src/ox/clargs/clargs.cpp
vendored
2
deps/ox/src/ox/clargs/clargs.cpp
vendored
@ -16,7 +16,7 @@ ClArgs::ClArgs(int argc, const char **args) noexcept {
|
||||
String arg = args[i];
|
||||
if (arg[0] == '-') {
|
||||
while (arg[0] == '-' && arg.len()) {
|
||||
arg = arg.c_str() + 1;
|
||||
arg = arg.substr(1);
|
||||
}
|
||||
m_bools[arg] = true;
|
||||
// parse additional arguments
|
||||
|
Loading…
Reference in New Issue
Block a user