summaryrefslogtreecommitdiff
path: root/src/string/memcmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/memcmp.c')
-rw-r--r--src/string/memcmp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/string/memcmp.c b/src/string/memcmp.c
index 028d2354..f87f849a 100644
--- a/src/string/memcmp.c
+++ b/src/string/memcmp.c
@@ -12,6 +12,7 @@ int memcmp(const void *s1, const void *s2, size_t n)
SIGNAL_SAFE(0);
ASSERT_NONNULL(s1);
ASSERT_NONNULL(s2);
+ /* no modifications, so overlap is OK */
for (i = 0; i < n; i++) {
if (p[i] != q[i]) {