From 9c63f26684515ba208e466d3d473bbf5b5db8bf2 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 21 Apr 2021 01:04:07 -0500 Subject: [PATCH] [ox/clargs] Fix overlapping memcpy that asan is being pedantic about --- deps/ox/src/ox/clargs/clargs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/ox/src/ox/clargs/clargs.cpp b/deps/ox/src/ox/clargs/clargs.cpp index 72ed399c..d9f0f7cc 100644 --- a/deps/ox/src/ox/clargs/clargs.cpp +++ b/deps/ox/src/ox/clargs/clargs.cpp @@ -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