diff options
author | David Robillard <d@drobilla.net> | 2020-08-01 15:24:59 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-02 01:48:48 +0200 |
commit | 9bc9ce00dd4d64a85700def449d7204c83bb79ad (patch) | |
tree | bf9fdf1abba2a2e917734c464c9d90d72f10c18b | |
parent | 31947a7e2d73cb1e336f140cad4c6363fca307a4 (diff) | |
download | ingen-9bc9ce00dd4d64a85700def449d7204c83bb79ad.tar.gz ingen-9bc9ce00dd4d64a85700def449d7204c83bb79ad.tar.bz2 ingen-9bc9ce00dd4d64a85700def449d7204c83bb79ad.zip |
Fix incorrect strncmp length
-rw-r--r-- | .clang-tidy | 1 | ||||
-rw-r--r-- | src/Serialiser.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/.clang-tidy b/.clang-tidy index 7c1d49db..9f13c4fb 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -15,7 +15,6 @@ Checks: > -android-cloexec-fopen, -bugprone-branch-clone, -bugprone-forward-declaration-namespace, - -bugprone-not-null-terminated-result, -bugprone-parent-virtual-call, -bugprone-signed-char-misuse, -bugprone-suspicious-string-compare, diff --git a/src/Serialiser.cpp b/src/Serialiser.cpp index 1f102dba..96bc7f7c 100644 --- a/src/Serialiser.cpp +++ b/src/Serialiser.cpp @@ -578,7 +578,7 @@ Serialiser::Impl::serialise_properties(Sord::Node id, if (p.second.type() == _world.uris().atom_URI && !strncmp(reinterpret_cast<const char*>(p.second.get_body()), "ingen:/main/", - 13)) { + 12)) { /* Value is a graph URI relative to the running engine. Chop the prefix and save the path relative to the graph file. This allows saving references to bundle resources. */ |