From 74ab2844967648a4e618467237480c6aba37b166 Mon Sep 17 00:00:00 2001 From: sin Date: Wed, 25 Feb 2015 10:35:16 +0000 Subject: Clarify comment a bit --- include/string.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/string.h') diff --git a/include/string.h b/include/string.h index 9d40e77..5623ffe 100644 --- a/include/string.h +++ b/include/string.h @@ -13,7 +13,8 @@ __fortify_memcpy(void *dest, const void *src, size_t n) char *d = dest; const char *s = src; - /* trap if pointers are overlapping but not if dest == src */ + /* trap if pointers are overlapping but not if dest == src. + * gcc seems to like to generate code that relies on dest == src */ if ((d < s && d + n > s) || (s < d && s + n > d)) __builtin_trap(); -- cgit v1.3