Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix using strlen with non-NUL terminated string #318

Merged
merged 2 commits into from Oct 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/Ark/Constants.hpp.in
Expand Up @@ -18,7 +18,7 @@ constexpr int ARK_VERSION_MINOR = @ARK_VERSION_MINOR@;
constexpr int ARK_VERSION_PATCH = @ARK_VERSION_PATCH@;
// clang-format on
constexpr int ARK_VERSION = (ARK_VERSION_MAJOR << 16) + (ARK_VERSION_MINOR << 8) + ARK_VERSION_PATCH;
constexpr char ARK_VERSION_STR[3] = { ARK_VERSION_MAJOR + '0', ARK_VERSION_MINOR + '0', ARK_VERSION_PATCH + '0' };
constexpr char ARK_VERSION_STR[4] = { ARK_VERSION_MAJOR + '0', ARK_VERSION_MINOR + '0', ARK_VERSION_PATCH + '0', 0x00 };

#define ARK_COMPILATION_OPTIONS "@ARK_COMPILATION_OPTIONS@"
#define ARK_COMPILER "@ARK_COMPILER@"
Expand Down