fortify-headers

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

commit 701d7d3303f7df0ec88bf8275c6c78d172556e30
parent 8cb1c705b1c9d1a13d16d01f9bb22780c0528363
Author: sin <sin@2f30.org>
Date:   Sat,  7 Mar 2015 11:49:44 +0000

Fix strncat() and strncpy() mappings

Thanks zhasha.

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

diff --git a/include/string.h b/include/string.h @@ -170,9 +170,9 @@ __fortify_strlcpy(char *dest, const char *src, size_t n) #undef strcpy #define strcpy(dest, src) __fortify_strcpy(dest, src) #undef strncat -#define strncat(dest, src, n) __fortify_strcat(dest, src, n) +#define strncat(dest, src, n) __fortify_strncat(dest, src, n) #undef strncpy -#define strncpy(dest, src, n) __fortify_strcpy(dest, src, n) +#define strncpy(dest, src, n) __fortify_strncpy(dest, src, n) #ifdef _GNU_SOURCE #undef mempcpy