fortify-headers

standalone fortify-source implementation
git clone git://git.2f30.org/fortify-headers
Log | Files | Refs | README | LICENSE

commit 69e43f5c5ee1c95f2d9701380b30d31589a77350
parent 14af218559243c1e16cf871e1823f1a5d8cece9f
Author: sin <sin@2f30.org>
Date:   Wed, 11 Mar 2015 12:57:37 +0000

Revert "Add explicit casts to satisfy C++ code"

This reverts commit 1fbf7a3a5e9c02cf992848002cfb88c3c7cc0212.

Diffstat:
Minclude/string.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/string.h b/include/string.h @@ -12,8 +12,8 @@ void * __fortify_memcpy(void *dest, const void *src, size_t n) { size_t bos = __builtin_object_size(dest, 0); - char *d = (char *)dest; - const char *s = (const char *)src; + char *d = dest; + const char *s = src; /* trap if pointers are overlapping but not if dest == src. * gcc seems to like to generate code that relies on dest == src */