diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/string.h b/include/string.h index b0979cc..c5f4710 100644 --- a/include/string.h +++ b/include/string.h | |||
| @@ -12,8 +12,8 @@ void * | |||
| 12 | __fortify_memcpy(void *dest, const void *src, size_t n) | 12 | __fortify_memcpy(void *dest, const void *src, size_t n) |
| 13 | { | 13 | { |
| 14 | size_t bos = __builtin_object_size(dest, 0); | 14 | size_t bos = __builtin_object_size(dest, 0); |
| 15 | char *d = (char *)dest; | 15 | char *d = dest; |
| 16 | const char *s = (const char *)src; | 16 | const char *s = src; |
| 17 | 17 | ||
| 18 | /* trap if pointers are overlapping but not if dest == src. | 18 | /* trap if pointers are overlapping but not if dest == src. |
| 19 | * gcc seems to like to generate code that relies on dest == src */ | 19 | * gcc seems to like to generate code that relies on dest == src */ |
